Skip to content

Is access_token's life-time the same as refresh_token's life-time? #3482

Answered by ltanady
ltanady asked this question in Questions
Discussion options

You must be logged in to vote

access_tokens are valid for 1 hour by default, but that can be changed on the dashboard under the JWT_EXP field.
There is no expiry date for refresh_tokens, but they can only be used once and will be revoked after.

Whenever a user is authenticated, we return an access_token and refresh_token pair. Once the access token expires, the user has to use the refresh_token to obtain a new access_token, which also generates a new refresh_token in the process.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by soedirgo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant