Browser Infrastructure Browser
Fundamentals/Intermediate

Authentication

Evading detection while managing multi-factor logins, persistent tokens, and secure state storage.

Dependency Path
Requires: None
Used By:
Environment Target
Compatibility: Chrome >= 110, nodriver >= 1.0
Last Reviewed: 2026-07-18
Recipes: 14 (4 cookbook / 10 playbook)

Why It Matters

Evading detection while managing multi-factor logins, persistent tokens, and secure state storage.Also known as: login, credentials, mfa.

authcookiestokens

Authentication is the entry point for most advanced browser automation tasks. When scraping protected user spaces, you must navigate multi-factor auth (MFA), password forms, and token verification without raising bot alerts.

Core Problems

  1. Undetectable Form Fills: Typing credentials via standard .send_keys() triggers Javascript event monitors that verify keyboard-timing cadence.
  2. Persistence: Constant relogins trigger rate limits and IP reputation drops. You must dump and reuse authentication states.
  3. MFA Telemetry: Bypassing OTP / App prompts requires synchronous manual handoffs or API webhooks.

Example Recipes

+8 more recipes in the knowledge base

Book Coverage

Python Browser Automation Cookbook
4 recipes covering this concept
Browser Automation Playbook
10 recipes covering this concept

Next Steps