4 ms·
Optimization if revocation isn't common: - Keep a last revocation time somewhere that is cheap to frequently poll (Redis) or broadcast it to all your nodes - Ke
by robmccoll 7y ago
Optimization if revocation isn't common:
- Keep a last revocation time somewhere that is cheap to frequently poll (Redis) or broadcast it to all your nodes
- Keep a revocation table
- Use iat and exp with your JWTs
- On revocation update the table and the last revocation time.
- On validation, only check the revocation table if iat < last revocation time. If you have to check the table, reissue the JWT with the same claims and exp but updated iat.