Skip to content
TesseraDocs
MenuAuthorization code invalid

Authorization code invalid

Code: authorizationcodeinvalid

View as Markdown

On this page

Code: authorization_code_invalid

  • HTTP status: 400 Bad Request
  • OAuth error: invalid_grant
  • Shown to the end user: Authorization code invalid

Request-specific detail for this error goes to the app or developer (API response, developer view, logs). The public page shows only the short message and the code.

Cause

The authorization code is unknown, already used, expired (60 seconds), issued to another client, or exchanged with a different redirect_uri than /authorize used.

Fix

Exchange each code once, within 60 seconds, from the client it was issued to, with the identical redirect_uri. A reused code also revokes what it produced; start a new authorization.

All error codes