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.
Prerequisites
Section titled “Prerequisites”- 1Password installed on your computer and/or phone
- Your M365 credentials already saved in 1Password (helpful but not required)
Setting Up 1Password OTP for M365
Section titled “Setting Up 1Password OTP for M365”-
On your computer, go to https://aka.ms/mysecurityinfo and sign in with your Microsoft 365 account.
-
Click + Add sign-in method.
-
From the dropdown, select Authenticator app and click Add.
-
Click Next on the “Start by getting the app” screen.
-
On the “Set up your account” screen, click I want to use a different authenticator app.
-
Click Next to see the QR code.
-
Don’t scan yet. Click Can’t scan image? to reveal the secret key.
-
Open 1Password and find your Microsoft 365 login (or create a new item for it).
-
Click Edit on the item.
-
Click + add more (or the field menu) and select One-Time Password.
-
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
-
Save the 1Password item. You’ll see a 6-digit code appear that refreshes every 30 seconds.
-
Back on your computer, click Next on the Microsoft page.
-
Enter the current 6-digit code from 1Password and click Next.
-
You’ll see a success message. Click Done.
Using 1Password OTP for M365 Sign-in
Section titled “Using 1Password OTP for M365 Sign-in”-
Go to the M365 sign-in page and enter your email.
-
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
-
After entering your password, M365 will ask for a verification code.
-
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
-
Paste or type the code into the verification field.
-
Click Verify to complete sign-in.
Using 1Password’s QR Scanner (Mobile)
Section titled “Using 1Password’s QR Scanner (Mobile)”If you prefer scanning rather than copying the secret key:
-
On your phone, open 1Password and find your M365 item.
-
Tap Edit.
-
Tap + add more → One-Time Password.
-
Tap the QR code icon in the OTP field.
-
Point your camera at the QR code shown on your computer screen.
-
1Password captures the secret automatically. Save the item.
Why Use 1Password for OTP?
Section titled “Why Use 1Password for OTP?”- 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)
Troubleshooting
Section titled “Troubleshooting”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