What the error means
AADSTS700082 is the Microsoft Entra code ExpiredOrRevokedGrantInactiveToken. Apps keep users signed in by exchanging a refresh token for new access tokens. If the refresh token is not used for long enough, it expires, and the next time the app tries to refresh, Microsoft Entra ID returns AADSTS700082 with the date the token was issued and how long it was inactive.
Microsoft's reference describes this as an expected part of the token lifecycle: the user went an extended period without using the application, so the token was expired when the app attempted to refresh it. It is not a fault in the account or the tenant. The fix is to sign in again so the app gets a new refresh token.
Microsoft's refresh token article explains the lifetimes behind the error. The default lifetime is 24 hours for single-page applications and for apps that use the email one-time passcode authentication flow, and 90 days for all other scenarios. Refresh tokens expire automatically once that period elapses, and the article says an app should handle this by redirecting the user to an interactive sign-in prompt to reauthenticate and obtain a new token.
The code also appears in Microsoft products that hold long-lived connections. Microsoft's Viva Goals integration troubleshooting page lists it with the explanation that the token used for the connection has expired, and advises reauthenticating or creating a new connection.
Common causes
- The user did not use the application for longer than the refresh token's lifetime.
- A saved connection or integration, such as a Viva Goals integration, was created long ago and not used, so its token expired.
- The app is a single-page application, where the default refresh token lifetime is only 24 hours.
How to fix it
1. Sign in to the app again
Sign out of the application and sign back in, or use the app's sign-in prompt if it shows one. A fresh interactive sign-in issues a new refresh token, and the error stops.
2. Reauthenticate saved connections
For integrations and connectors, Microsoft's advice is to reauthenticate the connection or create a new one. In Viva Goals, for example, the owner of the failed connection selects Try again in the integration popover, or reauthenticates it under Account Settings, Preferences, My integrations.
3. Developers: redirect to interactive sign-in
Do not retry the expired refresh token. Microsoft's refresh token article says apps should handle expired or revoked refresh tokens gracefully by redirecting the user to an interactive sign-in prompt to reauthenticate and obtain a new token.
4. For unattended jobs, avoid user refresh tokens
This is a general step. A script or service that runs rarely and relies on a user's refresh token will hit this error after a long gap. Consider an application identity with a certificate or managed identity for unattended work instead of a stored user token.
If nothing works
If the error appears even though the app was used recently, compare the issue date and inactive period in the message with the user's activity, and check for related codes. A revoked token after a password change returns AADSTS50173, and a Conditional Access sign-in frequency check returns AADSTS70043.
What we checked
Three Microsoft Learn pages were read on 2026-11-21. The Microsoft Entra error code reference defines AADSTS700082 as ExpiredOrRevokedGrantInactiveToken and calls it an expected part of the token lifecycle. The Viva Goals integration errors page lists the message and the reauthentication advice. The Microsoft identity platform refresh token article gives the default lifetimes and the guidance to redirect users to interactive sign-in. The error was not reproduced for this page.
Last checked: 2026-11-21.