user3653474
user3653474

Reputation: 3854

"A token is required" in JWT Laravel

I was trying to get the details of logged in user got this link

 use JWTAuth;
 $user=JWTAuth::toUser($token);

i tried this also $user = auth()->user(); getting NULL

$token variable is same which i have i browser local storage.

this link i found but this is not working in my case.

Tymon\JWTAuth::toUser error: A token is required

Upvotes: 0

Views: 1200

Answers (0)

Related Questions