In microservice architecture how to setup jwt with refresh token mechanism?

Our system has one frontend and multiple backends, so I need jwt config. In the docs, I saw the JWT plugin. It just give the token and jwks URI endpoint. How does the refresh token mechanism work here?
4 Replies
bekacru
bekacru2mo ago
the session token you use to fetch the jwt serves as a refersh token in this sense
shahreaz
shahreazOP2mo ago
ok. does this session token auto refresh?. im using only APIs in front end. ok I got it. i have to periodcally hit the token endpoint and get new jwt token. until the session token it valid it will give me new token. Am I right? or if the backend service give 401 with the expired jwt token. i will hit the /token endpoint to get new jwt token.
bekacru
bekacru2mo ago
yes
shahreaz
shahreazOP2mo ago
thanks for your amazing work. Really appreciate.

Did you find this page helpful?