Entra
Microsoft Entra device code verification code is invalid
Microsoft Entra rejected the device code flow because the user entered the wrong verification code during device authorization.
Entra
Microsoft Entra rejected the device code flow because the user entered the wrong verification code during device authorization.
Observed message
AADSTS70018: BadVerificationCode
Why it happens
How to fix it
Official reference
Microsoft Learn: Microsoft Entra authentication and authorization error codesRelated errors
Explore more