lundi 30 juillet 2018

i use jwt with laravel project how i want cancel token expiration because i want use it in api and save token in database

this is config.php to jwt how i can do it

'ttl' => 60,

/*
|--------------------------------------------------------------------------
| Refresh time to live
|--------------------------------------------------------------------------
|
| Specify the length of time (in minutes) that the token can be refreshed
| within. I.E. The user can refresh their token within a 2 week window of
| the original token being created until they must re-authenticate.
| Defaults to 2 weeks
|
*/

'refresh_ttl' => 20160,

**i need it because android developer save token in file and when the user login Times coming After the first login the application send token If it exists in the file send it to server and Check it in the database and return user information without login if not exists must login can i do this or i need another way to do it **



from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2LZpNVN
via IFTTT

Aucun commentaire:

Enregistrer un commentaire