Authentication Automation Platforms: How They Handle Logins, MFA, and 2FA

Even the most advanced portal automations can be defeated by a simple one-time code. The workflow reaches the login, the website sends a code to someone's phone or inbox, and the run stalls until the code is entered manually. If your team runs daily work on portals like these, more volume shouldn't mean more people waiting by the phone for codes.
We build Skyvern, an AI browser automation platform that handles sign-in as part of the workflows operations teams run on third-party portals.
In this article, we explain how different authentication methods work, what setup each requires, and which steps still need a person.
We compare how seven platforms handle these methods, then walk through a payer-portal login in Skyvern. We also cover what to check before running authenticated workflows in production, including credential storage, access, and run records.
Prefer to talk through your own setup instead of reading the full guide? Book a Skyvern demo to discuss whether your portal's login and 2FA can run unattended.
Which browser automation platforms handle logins and MFA securely?
Three kinds of tools handle logins: RPA suites; developer frameworks and hosted browsers that engineers use to build login workflows; and AI browser agents that log in as part of the task. The secure ones keep passwords and authenticator keys in a vault that the automation reads at run time, so nobody has to share credentials by hand. They differ in how the one-time code reaches the automation and in who builds and maintains the workflow.
| Platform | Type | Authenticator (TOTP) codes | Stored logins | Who builds the workflow |
|---|---|---|---|---|
| UiPath | RPA suite | Marketplace activities for Google, Microsoft, and Okta codes | Orchestrator credential assets | Automation developers |
| Automation Anywhere | RPA suite | Bot Store package that issues and checks codes | Credential Vault | Automation developers |
| Playwright + an OTP library | Developer framework | Generated by a library your developer adds | Wherever your code keeps them | Developers |
| Browserbase | Hosted browsers | A person signs in once through Live View | 1Password integration | Developers |
| Steel | Hosted browsers | Generated from a stored key (Credentials API, beta) | Credentials API (beta) | Developers |
| Airtop | Hosted browsers for agents | A person signs in once through Live View | Profiles keep the signed-in state | Developers |
| Skyvern | AI browser agent | Generated from a stored key (Pro and Enterprise) | Skyvern vault, 1Password (Pro), Bitwarden (Enterprise), and Azure Key Vault (Enterprise) | Operations teams, with an API for engineers |
UiPath lists Two-Factor Authentication Activities on its Marketplace, published by Internal Labs. They generate Google, Microsoft, and Okta codes from the secret key you get when you turn on 2FA for the account. UiPath itself says, "It is not best practice to use this activity in a production environment." Usernames and passwords live in Orchestrator as encrypted credential assets.
Automation Anywhere keeps logins in its Credential Vault, which "securely stores credentials and provides them to bots on demand." Its free Two-Factor Authentication Package on the Bot Store, last updated in May 2021, generates QR codes for authenticator apps, validates codes, and produces codes to send by email or text. Those features issue and check codes. For a bot that has to answer a portal's code prompt, ask Automation Anywhere which approach it recommends.
Playwright can save a signed-in browser state and reuse it so later scripts skip the login, as its authentication docs show. For authenticator codes, your developer adds a one-time-password library and stores each site's secret key, which means copying that key by hand every time 2FA is set up on a site.
Browserbase recommends signing in once by hand through its Session Live View, then reusing the saved login state in later sessions. According to its authentication guide, authenticator, SMS, and magic-link checks "usually require human intervention in the loop." It also connects to 1Password to fill logins.
Steel's Credentials API stores logins, fills them into the page without exposing them to the agent, and generates authenticator codes from a stored secret. The Credentials API is "currently in beta."
Airtop's guides have a person sign in through a Live View of the browser. Airtop then saves the cookies and local storage in a profile, so later sessions start signed in.
Skyvern stores each login together with its 2FA method, then enters the username, password, and code during the run. Your operations team builds the workflow with Copilot, from a plain-English description, a written procedure, or a recording, and the engineer who connects it to your other systems can use the API. You can find what each plan includes on our pricing page.
The right tool depends on who'll maintain the workflow. Browserbase, Steel, and Airtop provide hosted browsers for workflows that engineers build and maintain. RPA suites can automate logins inside desktop applications. If your operations team runs work on portals it doesn't control and wants to build and change those workflows itself, we built Skyvern for that.
How to handle MFA and SSO in browser automation, method by method
The portal's second authentication step largely determines whether a login can run unattended. An authenticator code can be generated with nobody present, while a push approval needs someone to tap a phone. So for each portal, find out which second step it uses before you pick how to automate it.
An OTP is a one-time password, regardless of how it's generated or delivered. A TOTP is a time-based one-time password that an authenticator app generates from a secret key, usually changing every 30 seconds (RFC 6238).
| Method | Runs unattended? | What you set up once | In Skyvern |
|---|---|---|---|
| Authenticator app (TOTP) | Yes, once the key is saved | Save the setup key, or a screenshot of the QR code, when 2FA is turned on | Generates the code from the stored key. Pro and Enterprise |
| Email codes and magic links | Yes, with access to the inbox | Connect the inbox, or forward code emails | Reads them from a connected Gmail or Outlook inbox, or from forwarded mail. Any plan |
| SMS codes | Yes, with a number the tool can read | Move the portal's 2FA phone number to a dedicated number | A Skyvern phone number (Pro, $10/month) or your own Twilio number |
| Push approval | No | Ask whether the portal offers an authenticator app instead | Not automated. A person approves it |
| Hardware security keys | No | A person keeps the key | Plan for someone to complete this step |
| Passkeys | Yes, where the tool can use a stored passkey | Keep the passkey in a password manager the tool can read | Enterprise, from a Bitwarden account you connect |
| SSO (Google, Microsoft, Okta) | Depends on the identity provider's second step | Note which SSO button to click | Works, with fallback sign-in options if SSO fails |
| Saved sessions | Yes, until the portal ends the session | Turn on session saving for the login | "Save browser session for future logins" on the credential |
Authenticator codes are the most dependable method, because the code comes from the stored key and nothing has to arrive from outside the run. To generate authenticator codes, a tool needs the secret key the site shows when you turn on 2FA. Most sites display the key when you click the "Can't scan?" or "Enter manually" link next to the QR code.
In Skyvern, paste the key into the Authenticator Key field or use Scan QR to upload a screenshot of the QR code. If 2FA is already on and nobody saved the key, we suggest turning 2FA off and on again to get a new one.

Skyvern automatically retrieves email codes and magic links from a connected Gmail or Outlook inbox. If your IT team won't allow that connection, use a relay such as Zapier or n8n to forward code emails to Skyvern. You can forward magic links the same way, as our October changelog explains.
SMS codes require a number Skyvern can receive texts on. Skyvern sells US numbers for $10/month each on Pro, and they're covered by an Enterprise agreement. You can also connect a Twilio number you already own. Some services won't send codes to internet phone numbers, so test each portal before relying on SMS.
Push approvals and hardware keys still need a person. Skyvern supports authenticator codes from Google Authenticator, Microsoft Authenticator, Okta Verify, and Oracle Mobile Authenticator, but it doesn't automate push approvals. On Enterprise, a Human Interaction step pauses the run for someone to act. Anyone watching a live run can also use Take control to finish signing in. If a portal requires a hardware security key such as a YubiKey, plan for someone to complete that step. If the portal offers an authenticator app as an alternative, switching the automation's account to it removes the wait. For passkeys, Skyvern can use one stored in a connected Bitwarden account on Enterprise.
With SSO, the portal redirects the login to Google, Microsoft, or Okta, whose sign-in page asks for its own second authentication step. A saved Skyvern login can include instructions such as "Click the SSO button first," and Skyvern handles the second step using the identity provider's method. If the "Sign in with Google or Microsoft" step fails, we recommend using a direct username and password where available, or signing in once and reusing a saved browser session or profile. Enterprise SAML SSO lets your team sign in to Skyvern itself.
Saved sessions reduce code prompts. With session saving on, Skyvern signs in once, checks that the login worked, and reuses the signed-in browser for later runs. The portal still decides how long a session lasts, so keep the full login as the fallback.
When a CAPTCHA sits next to the code prompt
Many portals add a CAPTCHA before or after the code prompt, so the workflow has to handle both in the same run. Skyvern Cloud does both in one run: it enters an authenticator, email, or SMS code and solves common CAPTCHAs, with a Basic solver on Hobby, Advanced on Pro, and Elite on Enterprise. Solving is not guaranteed, so the fallback is a person who uses Take control, solves it, and hands the run back. You're responsible for making sure you're authorized to automate each site.
Our guide to CAPTCHAs in browser automation covers the CAPTCHA types and the solving options in more detail. With the code and the CAPTCHA both handled, a login can run start to finish without anyone.
Example: a payer-portal login, start to finish
On a payer portal such as Availity or UHC Provider, the automation has to sign in before it can check the status of an authorization or claim. If someone has to enter a one-time code, the run can't continue until they do. Once the process owner has saved the login and set up its 2FA method in Skyvern, each run goes like this:
- The run picks up the stored login. The workflow uses the saved credential, or reads it from your 1Password, Bitwarden, or Azure Key Vault at run time, so nobody pastes a password into the workflow.
- Skyvern generates or retrieves the code. If the portal uses an authenticator app, Skyvern generates the code from the stored key. If it emails a code, Skyvern reads it from the connected inbox or forwarded email. Skyvern enters the code to complete sign-in. A run waits up to 15 minutes for an emailed or texted code.
- The task runs. With the login done, the agent checks the authorization or claim status and saves the result.
- Someone can check what happened. Each run keeps a recording, a screenshot for each step, and a timeline (runs docs), so the process owner can see the login and the status check after the fact.

On portals that send extra code prompts when a login comes from a new place, turn on Use a consistent IP address for the credential, so Skyvern signs in from the same IP each time. For setup instructions, see our authentication guide and credentials documentation.
What to check before running authenticated workflows in production
Before production, check where credentials live, whether anyone (or any AI model) can read them, and what record each login leaves. Ask each vendor on your shortlist these questions. Here's how Skyvern handles each one:
- Where passwords live and who can read them. Skyvern never shows a saved password or key again, in the app or through the API. You can also keep logins in your own 1Password (Pro), Bitwarden (Enterprise), or Azure Key Vault (Enterprise).
- What record each login leaves. Every run keeps its recording, step screenshots, and outputs, so you can show what the automation did at each login.
- Saved sessions or fresh logins. Saved sessions mean fewer code prompts, and fresh logins keep each run independent. Decide per portal.
- What happens when a code doesn't arrive. A run waits up to 15 minutes for an emailed or texted code, then fails. Decide who gets told and whether the run retries.
- What a login costs. Each action, such as a click or a keystroke, costs 30 credits, and each one-time code read from an email or text costs 10 (billing docs). A short login is a few actions plus one code read.
- Which plan each feature needs. Authenticator codes, Skyvern phone numbers, and 1Password need Pro. Bitwarden, Azure Key Vault, passkeys, and human-in-the-loop need Enterprise.
- Whether the AI model sees credentials. The model that drives the browser works with placeholders, and Skyvern types the real value only into the field. The details are in how Skyvern handles authentication.
<img src="https://tep8v7h02dngprgj.public.blob.vercel-storage.com/document-assets/01KZ6ZJYAGPVDM90GARREAVBG8/0e1db343cb8448027e00c46eae17465cecca631dad341f68e050086e14227fc9.png" alt="The AI model uses a placeholder. Skyvern retrieves the stored credential at run time and substitutes the real value when typing it into the browser field." data-pm-slice="0 0 []">
Desktop applications and login testing
Skyvern works only in the browser. Desktop RPA tools support automation in desktop applications. UiPath's UI Automation activities work with desktop applications and browsers, and its Marketplace activities cover Google, Microsoft, and Okta codes, with the production caveat quoted above. Automation Anywhere's Credential Vault provides stored credentials to its bots.
QA testing checks whether your own application's login works. This can include testing 2FA flows that use Google Authenticator codes. Skyvern runs daily workflows on third-party portals.
Reduce manual login work with Skyvern
The authentication method determines what your workflow needs to complete a login. That might be a stored authenticator key, access to an inbox or phone number, or a person who can approve the sign-in. Understanding those requirements helps you set up the steps that can run unattended and plan for those that still need your team.
Skyvern is built for operations teams running workflows on third-party portals. Your team can build and update those workflows with Copilot, while an engineer connects them to your other systems through the API. Authentication becomes part of the run that completes the task and saves the result for review.
Book a Skyvern demo and bring one portal, its login method, and the task your team needs to complete. We'll show you how Skyvern handles the login as part of that workflow.
FAQ
Can an AI agent log into websites and handle 2FA in a real browser?
Yes. Skyvern signs in with a stored login in a real Chromium browser and enters the code from an authenticator key, an email inbox, or a text message. Push approvals and hardware keys still need a person.
Why do some tools fail with certain 2FA setups?
The most common reason is a missing secret key. An authenticator code can only be generated from the key the site shows when 2FA is turned on, and some sites show only a QR code. Save the key or a screenshot of the QR code at setup. If nobody did, turn 2FA off and on again to get a new one.
Can one workflow handle several login methods?
Yes. In Skyvern, each saved login carries its own 2FA method, so one workflow can use an authenticator login for one portal and an email-code login for another. When a login has both an authenticator key and a phone number, Skyvern uses the authenticator key first.
Managed cloud or self-hosted?
Choose managed cloud if your portals show CAPTCHAs. Self-hosted Skyvern doesn't solve them: it waits 30 seconds for a person to solve one in the browser window. Credential storage differs too. Self-hosted Skyvern keeps logins in encrypted files on your server by default, or in a store you configure, such as Bitwarden, Azure Key Vault, or AWS Secrets Manager (configuration reference).


