Member Junction
    Preparing search index...
    Index

    Constructors

    Accessors

    Methods

    • 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).

      Returns { Domains: string[]; Entries: Record<string, string> }[]

    • 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.

      Parameters

      • domain: string

      Returns Record<string, string> | undefined

    • 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.

      Parameters

      • domain: string

      Returns void