Last verified against Microsoft Learn: .
Seeing a fix work for some users and not others? That’s usually cached tokens. See If it’s intermittent on the status page.
Default lifetimes
| Token | Default | Can you change it? | Source |
|---|---|---|---|
| Access token | A random value between 60 and 90 minutes (75 on average). Tenants that don’t use Conditional Access get two hours for clients such as Teams and Microsoft 365. With continuous access evaluation (CAE), capable clients can get long-lived tokens of up to 28 hours, which are revoked in near real time on critical events. | Yes, with a token lifetime policy (Microsoft Graph or PowerShell only, 10 minutes to 1 day). | Access tokens (opens in a new tab) · Configurable token lifetimes (opens in a new tab) |
| ID token | One hour. | Yes, with the same token lifetime policy. | ID tokens (opens in a new tab) |
| SAML token | One hour. | Yes, with the same token lifetime policy. | Configurable token lifetimes (opens in a new tab) |
| Refresh token | 90 days for most apps, 24 hours for single-page apps and the email one-time passcode flow. The 90-day limit is a maximum inactive time: using the token keeps the session going until it’s revoked. | No. Token lifetime policies stopped applying to refresh and session tokens on January 30, 2021. Use Conditional Access sign-in frequency instead. | Refresh tokens (opens in a new tab) · Defaults table (opens in a new tab) |
| Session token (browser SSO) | Non-persistent: expires after 24 hours of inactivity. Persistent (“Stay signed in”): 90 days of inactivity. Each use extends it. | No. Use sign-in frequency and persistent browser session in Conditional Access. | Defaults table (opens in a new tab) |
What actually matters for admins
You rarely need a token lifetime policy. Sign-in frequency, persistent browser session and CAE do the work. The first two are Conditional Access session controls, so they need Microsoft Entra ID P1 (see License requirements).
-
Sign-in frequency
How long a user can use a resource before signing in again. Microsoft’s default is a rolling 90 days, and it warns that frequent prompts can backfire, because users learn to type their password into anything. Because access tokens vary, the real interval can run past the setting: with a one-hour sign-in frequency, prompts come anywhere from 1 to 2.5 hours apart.
Microsoft Learn: Session lifetime (opens in a new tab) · Access token lifetime (opens in a new tab)
-
Persistent browser session
By default, users on personal devices see a “Stay signed in?” prompt and choose for themselves. Conditional Access can set this for them, which is worth doing for unmanaged devices.
Microsoft Learn: Persistent browser session (opens in a new tab)
-
Continuous access evaluation (CAE)
Lets Exchange Online, SharePoint Online and Teams reject a token before it expires when an account is disabled, a password is reset, and so on. Microsoft aims for near real time but says up to 15 minutes is possible. CAE is why long-lived tokens are acceptable.
Microsoft Learn: Continuous access evaluation (opens in a new tab)
-
Revoking sessions
When an account may be compromised, revoke the user’s sessions as well as resetting the password, so existing refresh tokens stop working.
Microsoft Learn: Revoke-MgUserSignInSession (opens in a new tab)
Is this still accurate?
Spotted something outdated or wrong on this page? Tell us in a sentence. The page address is sent with it.