Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

logout from all the devices in the jwt api laravel

How to resolved follow bellow:

1. Store token when use logined
  
2. Invalidate token on next time login
 JWTAuth::setToken($user->lastest_token);
 JWTAuth::invalidate();
 
PREVIOUS NEXT
Tagged: #logout #devices #jwt #api #laravel
ADD COMMENT
Topic
Name
1+5 =