Skip to content
Browserbase
    • Primitives
      • BrowsersCloud browsers for your agent to use the web
      • AgentsScale fully managed browser agents with simple prompts
      • SearchFind relevant websites from a single query
      • FetchRetrieve web data as agent-ready HTML, JSON, or markdown
      • RuntimeScalable, sandboxed environments for agent deployments
      • IdentityAuthenticate your agent to navigate the web like a human
      • ModelsUse any model with a single API key
      • ObservabilityUnified debugging your agent across replays, logs, and prompts
    • Open Source
      • Browse CLIGive your agent browsing skills with a single command
      • StagehandThe most popular AI browser automation framework
    • Use Cases
      • Browser Agents
      • Automated Testing
      • Workflow Automation
      • Web Data Extraction
      All use cases
    • Industries
      • AI & Agent Platforms
      • Healthcare
      • Fintech
      • GTM
      • Legal
    • Resources
      • Blog
      • Customers
      • Enterprise
      • Templates
  • Pricing
  • Docs
  • Log in
Log in
Sign up
Get a demo

Skip MFA on repeat logins

Complete MFA once and reuse authentication across future browser sessions

Skip MFA on repeat logins demo

Works with

TypeScriptTypeScriptPythonPythonStagehandStagehand

Built by

Browserbase

Support

support@browserbase.com

Resources

Browserbase docsStagehand websiteStagehand docs
Copy prompt to run with your AI agent
npx create-browser-app --template manual-mfa-with-contexts
uvx create-browser-app --template manual-mfa-with-contexts

Send this template to your email, or view it on your desktop for the source code.

Persist authentication and skip MFA on repeat sessions

Eliminate MFA friction by completing authentication once and reusing it across future sessions. The first session saves authentication state including MFA trust and "remember device" status. Subsequent sessions automatically restore this state with no login or MFA prompts required. Perfect for payment automation, account management, and compliance workflows where you need reliable, repeated access to authenticated sites.

Steps

  1. Create a new Browserbase context to persist authentication state
  2. First session: Navigate to login page and fill in credentials
  3. Detect MFA prompt and pause for manual MFA completion
  4. Wait for user to complete MFA in the browser session
  5. Context automatically saves authentication state including MFA trust
  6. Second session: Reuse context with no login or MFA required
  7. Verify authentication by checking logged-in state

Most Popular Templates

Verify real estate licenses

Verify real estate licenses and extract status, expiration, and holder details automatically

Verify real estate licenses

Solve CAPTCHAs automatically

Automatically solve reCAPTCHAs and other CAPTCHAs without manual intervention

Solve CAPTCHAs automatically

Persist login sessions

Save and reuse authentication state across browser sessions to skip repeated logins

Persist login sessions
Browserbase

Primitives

  • Browsers
  • Web APIs
  • Runtime
  • Identity
  • Model Gateway
  • Observability
  • Stagehand
  • MCP

Industries

  • AI
  • Healthcare
  • GTM
  • Tax
  • Legal

Developers

  • Docs
  • Templates
  • APIs & SDKs
  • Changelog
  • Status
  • Github

Company

  • Careers
  • Customers
  • Partner with Us
  • Trust & Security

Community

TwitterLinkedinYoutube
  • Privacy Policy
  • Terms of Service

Community

TwitterLinkedinYoutube
  • Privacy Policy
  • Terms of Service