Generate authenticator code step
The Generate authenticator code step produces the current 6-digit two-factor authentication code for a saved credential, the same code an authenticator app on your phone would show. The code is made available as the [totp-code] token, which you can type into a verification field with an Enter text step.
This lets an automation get past a 2FA prompt without any human involvement, so logins that need two-factor authentication can run unattended in the cloud.
You can use this step to:
- Complete a two-factor authentication prompt automatically
- Run a full unattended login on a site protected by an authenticator app
- Pair with the Log in with credentials step for a complete sign-in flow
The 2FA secret comes from the saved credential, either the secret you entered for an Axiom credential or the one-time password field on a 1Password item. To save credentials, see Log in with saved credentials.

How to configure the Generate authenticator code step
Credentials
Select the saved credential to generate a code for. When you pick one, the step name updates automatically to that credential's label.
At runtime the step generates the current 6-digit code. If the code is within 10 seconds of expiring, the step waits for the next code to begin before fetching it, so the code can't expire mid-submission. The result is output as the [totp-code] token.
To use the code, add an Enter text step after this one, select the verification field, and insert the [totp-code] token. For the full recipe, see Log in with 2FA.
Guides that use this step
Automate Instagram login with 2FA for cloud runs
- Open the Instagram login page
- Close the cookie window if it appears
- Sign in with my saved Instagram credential
- Type the authenticator code and confirm
- Dismiss the save login and notification prompts
Automate Gmail login with 2FA for cloud runs
Automate Gmail login with 2FA for unattended cloud runs: store the Google login and its authenticator key in 1Password or axiom.ai, then two steps fill the password and the 6-digit code.