Skip to content

Commit

Permalink
Update JWTGuard.php
Browse files Browse the repository at this point in the history
  • Loading branch information
mabdullahsari authored Jan 26, 2025
1 parent 1ccadbe commit dddabe7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/JWTGuard.php
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,8 @@ public function id()
return $id;
}

if ($this->user()) {
return $this->user()->getAuthIdentifier();
if ($user = $this->user()) {
return $user->getAuthIdentifier();
}

return null;
Expand Down

0 comments on commit dddabe7

Please sign in to comment.