Skip to content

Commit

Permalink
fix: legacyGuardUserMethod should use $session not $token (#365)
Browse files Browse the repository at this point in the history
  • Loading branch information
evansims authored Apr 11, 2023
1 parent 5863d5c commit 844b6c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Auth/Guard.php
Original file line number Diff line number Diff line change
Expand Up @@ -581,7 +581,7 @@ public function user(): ?Authenticatable
$session = $this->find(self::SOURCE_SESSION);

if ($session instanceof Credential) {
$this->login($token, self::SOURCE_SESSION);
$this->login($session, self::SOURCE_SESSION);

return $this->getCredential()?->getUser();
}
Expand Down

0 comments on commit 844b6c9

Please sign in to comment.