Jwt-auth: How to invalidate a token string

Created on 30 Jul 2015  路  1Comment  路  Source: tymondesigns/jwt-auth

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();
});

Most helpful comment

There is a invalidate method on the JWTAuth instance e.g.

Route::post('/invalidate', function() {
   JWTAuth::parseToken()->invalidate();
});

>All comments

There is a invalidate method on the JWTAuth instance e.g.

Route::post('/invalidate', function() {
   JWTAuth::parseToken()->invalidate();
});
Was this page helpful?
0 / 5 - 0 ratings

Related issues

marciomansur picture marciomansur  路  3Comments

CBR09 picture CBR09  路  3Comments

hfalucas picture hfalucas  路  3Comments

gamelife1314 picture gamelife1314  路  3Comments

therealmjk picture therealmjk  路  3Comments