Hi guys!
Am building a Spring Boot backend with a React Native (Expo) Frontend
My question revolvs around a good strategy for the JWT refresh token that am gonna use.
1: Stateless JWT token refresh without a database
- Harder to revoke if stolen
2: Opaque non-rotating, (UUID in the database)
- Basically a random string with UUID that is stored in the database that the backend will check towards
- can revoke from database if stolen
3 Opaque rottation token
- Generates a new UUID in the database on each refresh.
* This one seems harder to do but more secure on the long term.
- The new UUID invalidates the old one on the refresh
What would you do and do you got any tips or tricks? 🙂
