The 6-digit code prompt usually means the site expects a time-based one-time password (TOTP) from Microsoft Authenticator, while the 8-digit codes being received are likely a different type of code (for example, a sign-in approval code or a code from another method/account).
To resolve this:
- Open the Microsoft Authenticator app.
- Tap the specific work/school or Microsoft 365 account being used to sign in.
- Look for a line labeled something like “One-time password code” under that account entry. That is the 6-digit OTP the sign-in page is asking for.
- Enter that 6-digit code (it changes every 30 seconds) into the sign-in prompt.
If there is no “One-time password code” shown for the account in Authenticator, or only 8‑digit codes/approvals appear and sign-in still fails, the MFA registration is likely misconfigured and must be reset by Microsoft support:
- Call Microsoft’s customer service phone number for the region (see Customer service phone numbers - Microsoft Support in the referenced article).
- When the IVR asks what the problem is, clearly state “Authenticator” and that this is for Office 365 for business and a company account.
- Confirm being an administrator (if applicable) and that there is no other admin.
- Ask the agent to create a service request and escalate to the Data Protection team to reset the MFA / Authenticator registration for the account.
Once the Data Protection team resets MFA, sign-in will allow setting up Microsoft Authenticator again and the correct 6‑digit OTP codes will appear.
References:
- Microsoft Authenticator app doesn't show 6-digit OTP code - Microsoft Q&A
- Troubleshoot Microsoft verification code issues
- Common problems with two-step verification for a work or school account
- I need to speak with a real person and it seems impossible. - Microsoft Q&A
- Requesting a Tenant Admin MFA Reset - Microsoft Q&A