Cryptocurrency Q&A How long should a refresh token last?

How long should a refresh token last?

Raffaele Raffaele Mon Oct 28 2024 | 5 answers 1526
I am trying to implement authentication in my application and I'm using refresh tokens. I want to know the ideal duration for which a refresh token should be valid. How long should a refresh token last?

5 answers

SamsungShineBrightnessRadiance SamsungShineBrightnessRadiance Wed Oct 30 2024
Refresh tokens possess a lifespan that surpasses access tokens.

Was this helpful?

349
29
EchoPulse EchoPulse Tue Oct 29 2024
In the case of single page applications, the default duration for refresh tokens is set at 24 hours.

Was this helpful?

314
36
Silvia Silvia Tue Oct 29 2024
For all other applications and scenarios, the default lifetime of refresh tokens is extended to 90 days.

Was this helpful?

146
63
Lucia Lucia Tue Oct 29 2024
This mechanism ensures that users do not have to frequently re-authenticate themselves.

Was this helpful?

331
32
Lorenzo Lorenzo Tue Oct 29 2024
Every time a refresh token is utilized, it is replaced with a new, fresh token.

Was this helpful?

386
81

|Topics at Cryptocurrency Q&A

Get the BTCC app to start your crypto journey

Get started today Scan to join our 100M+ users

The World's Leading Crypto Trading Platform

Get my welcome gifts