Skip to main content

AADSTS54005: OAuth authorisation code has already been used

The OAuth authorisation code has already been used.

What to check​

  1. Start a new authorisation or use an existing valid refresh token instead of submitting the same code again.

Official reference​

Microsoft Learn: AADSTS error codes

Microsoft error lookup​

Message summary: The OAuth authorisation code has already been used.

Microsoft does not provide a separate remediation in the lookup.

Open AADSTS54005 in Microsoft’s lookup