3 ms·
you can put a session token in a JWT token with a short life to prevent your database from being pestered, only bothering it when the JWT expires and reassign a
by KevinMS 2y ago
you can put a session token in a JWT token with a short life to prevent your database from being pestered, only bothering it when the JWT expires and reassign a new one (JWT). The downside is if you revoke the session token you have to wait for the JWT to expire before the login is over.