A Microsoft app for iOS and Android devices that enables authentication with two-factor verification, phone sign-in, and code generation
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: