← Back to all provider errors
Microsoft
AADSTS70018 — Bad verification code
User entered an invalid user code.
Riposte solution
In a device code flow, the user entered an incorrect code. If you're using device code (Riposte primarily uses interactive OAuth so this might not occur often), you'd prompt the user to re-check the code and enter it again. Generate a new device code as needed and ensure the user types it correctly.
Quick facts
- Provider
- Microsoft
- Endpoint / surface
- Azure AD device code
- Status code
- 400
Why it happens
[Typo in user code]
How to fix it
[Have user re-enter correct code; start new device flow]