Nice write up! Question: if an authenticated user gets a new/extra role, does the server create a new JWT or is there a way to update the existing token?
4
Why should the role be in the token if you have the userinfo endpoint? Or why should there even be a (list of) role(s) in the token if it’s only a means to have access to an endpoint? 🤔
1
Some people like to use JWTs for access tokens or other self-encoded mechanisms. There are definitely trade-offs.

Jun 6, 2019 · 7:20 PM UTC