AADSTS700005: Authorisation code was redeemed in the wrong tenant
The authorisation code was redeemed in the wrong tenant.
What to check
- Redeem the code using the same tenant authority that issued it.
Official reference
Microsoft Learn: AADSTS error codes
Microsoft error lookup
Message summary: The authorisation code was redeemed in the wrong tenant.
Microsoft remediation: Send the token request to the same tenant that issued the authorisation code.