background
← Back to all provider errors

Microsoft

InvalidAuthenticationToken — Invalid or expired token

Access token missing/expired/invalid/audience mismatch.

Riposte solution

The Microsoft Graph access token for this account is invalid or expired. To resolve:

  • Reauthorize the account: initiate a new Microsoft OAuth session via Riposte:
    curl -X POST 'https://api.riposte.co/auth/sessions' \
         -H 'x-api-key: <YOUR_API_KEY>' \
         -H 'Content-Type: application/json' \
         -d '{"provider":"microsoft","redirectUri":"https://app.example.com/auth/callback","email":"[email protected]"}'
    
    Provide the user with the authUrl from the response to log in and consent again.
  • Optional: Pause this account's operations until reauthentication is completed (call POST /accounts/{accountId}/pause with { "paused": true }).

Quick facts

Provider
Microsoft
Endpoint / surface
Microsoft Graph
Status code
401

Why it happens

[Expired token; Wrong resource/audience; Clock skew]

How to fix it

[Acquire fresh token with correct scopes and audience]