Share via

Microsoft Authenticator

Cynthia Mitchell 0 Reputation points
2026-02-27T18:02:29.4333333+00:00

I'm using the Microsoft Authenticator

Problem: the .gov website asks for 6-digit code. the authenticator generates 8-digits. Can this be changed?

Microsoft Security | Microsoft Authenticator
0 comments No comments

1 answer

Sort by: Most helpful
  1. AI answer

    2026-02-27T18:02:39.1566667+00:00

    The number of digits in the one-time password (OTP) generated by Microsoft Authenticator cannot be changed in the app.

    Microsoft Authenticator can generate different types of verification codes depending on how the account was set up (for example, as an OATH verification code vs. another provider’s format). Some services expect a 6‑digit TOTP, while others may use 8‑digit codes. If the .gov site specifically requires a 6‑digit code but the configured account in Microsoft Authenticator shows an 8‑digit code, that account entry in Authenticator is not compatible with the site’s expected format.

    To resolve this, the account must be set up using the method and app type that the .gov site officially supports (often a specific authenticator app or a QR code/secret key that produces 6‑digit TOTP codes). Reconfiguration must be done on the .gov site’s security/MFA settings page; Microsoft Authenticator itself does not offer a setting to switch between 6‑digit and 8‑digit codes.

    If the .gov site supports Microsoft Authenticator explicitly, re-add the account there and scan the new QR code into Authenticator; if it does not, use the authenticator app it recommends.


    References:

    AI-generated content may be incorrect. Read our transparency notes for more information.

    Was this answer helpful?

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.