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 eccdf35 commit 58dc085Copy full SHA for 58dc085
src/Auth.php
@@ -745,6 +745,7 @@ public function parseToken()
745
/**
746
* Verify a user's token
747
* @param string $token The token to verify
748
+ * @return User|null
749
*/
750
public function verifyToken(string $token)
751
{
@@ -771,7 +772,7 @@ public function verifyToken(string $token)
771
772
return null;
773
}
774
- return true;
775
+ return $user;
776
} catch (\Throwable $th) {
777
$this->errorsArray['token'] = $th->getMessage();
778
0 commit comments