|
|
|
|
|
by 9dev
1360 days ago
|
|
Issue tokens that have a reasonably short TTL - say, half an hour - and let clients use their refresh token to obtain a new token after that. On refresh requests, ask the database whether the refresh token has been invalidated, if it is, return 403 (bonus points for checking the expiration date first and delete expired and invalidated tokens from the invalid-list). This reduces the necessary database roundtrips, while still supporting a logout flow. |
|