Closed DevYunus closed 7 years ago
How to logout and refresh token ? tried $token = JWTAuth::parseToken(); $token->invalidate(); it gives The token could not be parsed from the request .
$token = JWTAuth::parseToken(); $token->invalidate();
I am able to solve it by calling JWTAuth::parseToken('token) . This Repo is very useful . Thanks for such clean code.
JWTAuth::parseToken('token)
How to logout and refresh token ? tried
$token = JWTAuth::parseToken(); $token->invalidate();
it gives The token could not be parsed from the request .