Whether a global callback is configured
Apply auth for a domain if not already applied. Called by the engine before each navigation.
Finds the first matching binding (array order, first match wins) and applies its auth method to the browser adapter.
Run the global auth callback once after browser launch. Handles SSO/MFA flows that span multiple domains. Runs IN ADDITION to per-domain bindings, not instead of them.
Extract all LocalStorage auth bindings for pre-population at browser launch.
Returns an array of { Domains, Entries } for every binding whose method is LocalStorage. The engine uses this to build BrowserConfig.InitialLocalStorage so entries are injected via Playwright's storageState BEFORE any page loads, avoiding race conditions with SPA auth SDKs.
Does NOT mark domains as applied — that happens when ApplyAuthForDomain() encounters the LocalStorage method (which is a no-op since entries are already in the browser context).
Extract LocalStorage auth entries for a domain, if configured.
Returns the entries map and marks the domain as applied so that ApplyAuthForDomain() won't try to apply it again. The engine uses this to defer localStorage injection until AFTER navigating to the domain (so the browser is on the correct origin for localStorage scoping) and then reload.
Returns undefined if no LocalStorage binding matches this domain.
Get FormLogin credentials for a domain, if configured.
Called by the engine when building the controller prompt. Returns credentials so the LLM can type them into a login form. Returns undefined if no FormLogin binding matches this domain.
Reset auth state for a specific domain. Called by the engine's error recovery when a 401/403 is detected. Allows auth to be re-applied on the next navigation to this domain.
Whether any bindings are configured