Generate authenticator code step

What to use the Generate authenticator code step for


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.