Skip to content

M365 MFA with 1Password OTP

1Password can store your M365 one-time passwords alongside your login credentials. When you sign in, 1Password auto-fills your password and shows the current OTP code — everything in one place.

  • 1Password installed on your computer and/or phone
  • Your M365 credentials already saved in 1Password (helpful but not required)
  1. On your computer, go to https://aka.ms/mysecurityinfo and sign in with your Microsoft 365 account.

  2. Click + Add sign-in method.

  3. From the dropdown, select Authenticator app and click Add.

  4. Click Next on the “Start by getting the app” screen.

  5. On the “Set up your account” screen, click I want to use a different authenticator app.

  6. Click Next to see the QR code.

  7. Don’t scan yet. Click Can’t scan image? to reveal the secret key.

  8. Open 1Password and find your Microsoft 365 login (or create a new item for it).

  9. Click Edit on the item.

  10. Click + add more (or the field menu) and select One-Time Password.

  11. In the one-time password field, enter the secret key shown on the Microsoft page.

    • You can paste the key directly, or
    • If using 1Password on your phone, tap the QR code icon in the OTP field to scan
  12. Save the 1Password item. You’ll see a 6-digit code appear that refreshes every 30 seconds.

  13. Back on your computer, click Next on the Microsoft page.

  14. Enter the current 6-digit code from 1Password and click Next.

  15. You’ll see a success message. Click Done.

  1. Go to the M365 sign-in page and enter your email.

  2. When prompted for password:

    • If using 1Password in browser: click the 1Password icon or use keyboard shortcut (⌘+\ on Mac, Ctrl+\ on Windows) to auto-fill
    • Or open 1Password, find your M365 item, and copy the password
  3. After entering your password, M365 will ask for a verification code.

  4. Get the code from 1Password:

    • Browser extension: The OTP is shown in the auto-fill popup — click to copy
    • Desktop app: Open your M365 item, click the 6-digit code to copy it
    • Mobile app: Open the item, tap the code to copy
  5. Paste or type the code into the verification field.

  6. Click Verify to complete sign-in.

If you prefer scanning rather than copying the secret key:

  1. On your phone, open 1Password and find your M365 item.

  2. Tap Edit.

  3. Tap + add moreOne-Time Password.

  4. Tap the QR code icon in the OTP field.

  5. Point your camera at the QR code shown on your computer screen.

  6. 1Password captures the secret automatically. Save the item.

  • One app, one place: Your password and OTP code live together
  • Cross-device sync: Access codes on any device with 1Password
  • Browser auto-fill: Often copies the OTP to clipboard automatically after password fill
  • Backup: Your OTP secrets are backed up with your 1Password vault (unlike phone-only authenticators)

Code not accepted?

  • Ensure your device’s time is set automatically (Settings → Date & Time → Set Automatically)
  • TOTP codes are time-sensitive — if the code is about to expire, wait for the next one
  • Verify you’re looking at the correct 1Password item

OTP field not showing a code?

  • Make sure you entered the secret key correctly (no spaces, check for typos)
  • Try removing and re-adding the OTP field with the secret key

Want to switch devices?

  • Your OTP secret syncs with 1Password across all your devices automatically
  • No re-enrollment needed when you get a new phone