Skip to main content
Use this example to capture browser state after login—including cookies, localStorage, and sessionStorage—so you can debug authentication flows and reuse tokens in downstream steps. This page is intentionally keyword-rich so you can find it by searching for: cookies, localStorage, sessionStorage, browser storage, auth token, state extraction, storage state.

Overview

This automation:
  • Logs in to a site (email + password)
  • Runs a state extraction to capture:
    • page_url, page_title
    • local_storage, session_storage
    • cookies, document_cookie
The full example automation lives at optexity/examples/login_cookies.json.

Minimal example

After your login interaction steps, add a state extraction node:

Full automation (from login_cookies.json)

What you get back

The state extraction appends an OutputData.json_data object with keys:

When to use this