Skip to content
This repository was archived by the owner on Jan 13, 2022. It is now read-only.

Commit 06a74cf

Browse files
committed
fix: get state with loadState()
1 parent 11899c9 commit 06a74cf

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/Facebook/FacebookRedirectLoginHelper.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,6 @@ public function getLogoutUrl(FacebookSession $session, $next)
174174
*/
175175
public function getSessionFromRedirect()
176176
{
177-
$this->loadState();
178177
if ($this->isValidRedirect()) {
179178
$params = array(
180179
'client_id' => FacebookSession::_getTargetAppId($this->appId),
@@ -203,7 +202,7 @@ public function getSessionFromRedirect()
203202
*/
204203
protected function isValidRedirect()
205204
{
206-
$savedState = $this->state;
205+
$savedState = $this->loadState();
207206
if (!$this->getCode() || !isset($_GET['state'])) {
208207
return false;
209208
}

0 commit comments

Comments
 (0)