function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
emacadieemacadie 

Access token

I know that refresh tokens only last two hours but access tokens last longer. My question is: how long do access tokens last? A month? A year? Forever?

 

 

 

 

SuperfellSuperfell

You have it back to front. refresh tokens last until they are revoked by the user or admin. access tokens expire after some amount on inactivity (the exact amount depends on the org settings, see the session expiration setting in the security section of setup, it can be anywhere between 30 minutes and 8 hours).