Open njofce opened 6 years ago
I am too facing the problem with refresh token to authenticate my react native app.
JWTAuth::invalidate($token);
doesn't that blacklist the token?
try with
[preceding code...]
try {
$newToken = $this->manager->refresh($token)->get();
JWTAuth::invalidate($token);
$token = $newToken;
} catch (TokenInvalidException $e) {
return response()->json($e->getMessage(), 500);
}
[.. remaining code]
@MithrandirDK I tried that as well and nothing changed.
I am using the following method to refresh JWT token. Testing it from Postman returns "Token has been blacklisted" message. Any suggestion why this is happening.
Thanks
` public function refreshToken(){ $token = JWTAuth::getToken();