lundi 30 juillet 2018

Invalidate JWT Token only after a period of inactivity

I'm using Tymon JWT package in my Laravel project, and I need to invalidate the token of the connected user after 4 hours of inactivity. In the config file of the package I can set the TTL time for a token as : 'ttl' => env('JWT_TTL', 240), and the user will be logged out every 4 hours even if he was active, but I only want that to happen if the user wasn't active during the whole 4 hours.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire