We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bddb6cb commit 1a43294Copy full SHA for 1a43294
1 file changed
src/Auth.php
@@ -752,12 +752,12 @@ public function verifyToken(string $token)
752
new Key(Config::get('token.secret') . '-verification', 'HS256')
753
);
754
755
- if (!isset($decodedToken['user.id'])) {
+ if (!isset($decodedToken['user.email'])) {
756
$this->errorsArray['token'] = 'Invalid token';
757
return null;
758
}
759
760
- $user = $this->find($decodedToken['user.id']);
+ $user = $this->find($decodedToken['user.email']);
761
762
if (!$user) {
763
$this->errorsArray['token'] = 'User not found';
0 commit comments