jeudi 23 décembre 2021

"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



from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/3qlpo5t
via IFTTT

Aucun commentaire:

Enregistrer un commentaire