AADSTS50173

Fresh token needed — grant expired or revoked

Last reviewed 2026-07-18 by the Just Software engineering team · also seen as 50173, FreshTokenNeeded, fresh auth token is needed

What it means

AADSTS50173 — "The provided grant has expired due to it being revoked, a fresh auth token is needed." The refresh token or session artefact the client presented is no longer valid because something invalidated it server-side: commonly a password change, an admin revoking sessions, or security-driven token revocation. Re-authentication is the designed outcome, not a fault.

Common causes

  1. The user changed their password (or it was reset), which revokes existing refresh tokens.

  2. An admin revoked sessions (user > Revoke sessions in the portal, or Revoke-MgUserSignInSession), often as part of incident response.

  3. Identity protection or policy-driven revocation events invalidated outstanding tokens.

  4. Long-dormant clients returning with tokens that were revoked in the meantime.

How to fix it

  1. Have the user sign in again interactively — that is the intended resolution.

  2. If a device keeps looping on this error, clear its cached accounts/tokens (Windows: Settings > Accounts > Access work or school; browsers: sign out of the account) and sign in fresh.

  3. If it recurs across many users without admin action, review recent password-reset activity and any automation calling session-revocation APIs.

An unhandled error has occurred. Reload 🗙