Skip to content

What's the validity of refresh_token #72

Answered by frankie567
janshermarri asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @janshermarri, welcome to Fief 👋

The refresh_token is valid for 30 days. If you self-host your Fief instance, you can customize this parameter using the REFRESH_TOKEN_LIFETIME_SECONDS environment variable.

Bear in mind though that when you use the refresh token to get a fresh access token, you also get a new refresh token, that you should save for the future. The previous one is invalidated, you can use it only once. This is what is usually called refresh token rotation.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by janshermarri
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants