Set up an authenticator app
An authenticator app is a free app on a phone or computer that shows a new 6-digit code every 30 seconds. After you add one to your account, you use that code as your second step when you sign in. It is stronger than email codes, and it keeps working if your site’s email stops.
Before you start#
- Install an authenticator app on your phone or computer. Shield works with standard apps such as Google Authenticator, Authy and 1Password.
- Check that the 2FA tab allows it. Go to Settings → Login Shield → 2FA, and under Allowed methods make sure Authenticator app (TOTP) is ticked. If it isn’t, the setup button won’t work.
- Make sure the clock on your phone is correct. Codes depend on the time.
Where users set it up#
Each user sets up their own authenticator app on the Login & security page.
- Administrators: go to Users → Login & security.
- Other roles: go to Profile → Login & security.
- On the front end: if you add the
[nahnls_account_security]shortcode to a page, users can manage it there. WooCommerce stores can show it on My Account.
On the 2FA tab, the Add authenticator app button in the status banner takes you straight to this page.

Set it up#
- Open Login & security.
- In the Two-factor authentication section, find the Authenticator app row and click Set up.
- A QR code and a text key appear.
- In your authenticator app, add a new account and scan the QR code. If you can’t scan, choose “enter a setup key” and type the key shown under “Or enter this key manually:”. The spaces in the key are only for reading.
- The app now shows a 6-digit code. Type that code into Confirmation code and click Confirm.
- You see “Authenticator app enabled.”
The app isn’t active until you confirm it with a valid code. If you leave before confirming, nothing changes.
Once it’s set up, the Authenticator app row has a switch and a Reconfigure link:

Save your backup codes#
When you add your first stronger method, Shield shows Your backup codes:
- There are 8 codes.
- Each code works once.
- They are shown only once. Use Copy codes and store them somewhere safe, such as a password manager.
Backup codes are your way in if you lose your phone. See “Email codes and backup codes”.
Signing in afterward#
- Enter your username and password as usual.
- On the challenge page, type the 6-digit code from your app.
- You’re signed in.
Because you now have a stronger method, Shield no longer emails a code automatically. If you need one, the challenge page still offers Email me a code.

Change or replace your app#
Click Reconfigure on the Authenticator app row. Shield shows a new QR code, and your old app entry stops working once you confirm the new one. Use this when you get a new phone.
If you lose access to the old phone before you can do that, sign in with a backup code, then reconfigure.
To make new backup codes, click New codes on the Backup codes row. Shield asks for your password. Regenerating invalidates your existing codes.
Remove it#
To remove your authenticator app, turn off the switch on the Authenticator app row. You’ll then verify with email codes again. Users can’t turn 2FA off completely if their role requires it. An administrator can reset another user’s methods.
Time and codes#
- A code changes every 30 seconds.
- Shield accepts codes from a little before and after the current time, to allow for small clock differences. If a code is rejected, check that your phone’s time is set automatically.
- A code can only be used once. If you sign in twice in the same 30 seconds, wait for the next code.
Tips for administrators#
- Set up an authenticator app on your own account first, before you require 2FA for everyone. Email-only accounts are locked out if your site’s email fails.
- You can see who has added an app or passkey in the status overview at the bottom of the 2FA tab, along with how many backup codes each has left.
- To help a user who lost their phone, reset their methods. They fall back to email codes and can set up a new app.
Troubleshooting#
- “That code is not correct. Check the time on your device and try again.”: fix your phone’s clock, wait for a fresh code, and try again.
- “The setup session expired. Please start again.”: click Set up again to get a new QR code.
- “Too many attempts. Please try again in a few minutes.”: wrong codes are rate-limited. Wait, then retry.
- The Set up button is missing or says the method is unavailable: the authenticator app method is switched off on the 2FA tab, or the page needs JavaScript. Turn the method on, or check for a script error.
- “Please sign in to manage your login and security settings.”: you’re signed out. Sign in first.
Was this helpful?
Thanks for your feedback!
✓ Feedback received. Thank you!