3 ms·
> Fine, revoke the master token This is exactly the ability which JWT lacks. You can, of course, combine a session ID (checked against a DB) with a short-live
by nine_k 8y ago
> Fine, revoke the master token
This is exactly the ability which JWT lacks.
You can, of course, combine a session ID (checked against a DB) with a short-lived token (stateless, with expiration time encoded). This will allow to only check the session against a DB if, say, more than 30 seconds has passed since the previous check. It helps with spiky traffic, and still allows to invalidate a session soon enough for practical reasons.
- vegardx 8y agoAnd this reduces complexity of all backend systems, as they only have to deal with one mechanism for authentication and authorization.