Separate access and refresh-token roles
Keep access tokens short-lived and narrowly scoped. Refresh tokens should be stored more carefully, rotated on use where appropriate, and bound to a server-side session record so they can be revoked independently.
- Set explicit issuer, audience and expiry checks
- Use least-privilege access-token scopes
- Keep refresh-token state revocable