hi,
I just want to ask if there is a way to invalidate token string which is being get from post data calls.
Example:
//in backend ( laravel )
Route::post('/invalidate',function() {
$token = Request::input('token');
$token->invalidate();
});
There is a invalidate method on the JWTAuth instance e.g.
Route::post('/invalidate', function() {
JWTAuth::parseToken()->invalidate();
});
Most helpful comment
There is a invalidate method on the JWTAuth instance e.g.