Live Auth Guide

Copy the two live auth cookies needed for the final launch walkthrough.

Use this page when you need the exact `switch_auth_session` cookie for one student account and one admin account from the deployed platform.

Important

Use your deployed site for this process, not `localhost`. Copy only the cookie name and value. Do not copy `Path`, `Expires`, `HttpOnly`, or other cookie metadata.

Step by step

Student cookie first, admin cookie second

  1. Open your deployed site in a normal browser window and sign in as the student user.
  2. Open browser developer tools.
    Mac: Cmd + Option + I · Windows: Ctrl + Shift + I
  3. Open the cookie storage panel for your browser.

    Chrome or Edge

    Application -> Storage -> Cookies -> your deployed site domain

    Firefox

    Storage -> Cookies -> your deployed site domain

    Safari

    Develop -> Show Web Inspector -> Storage -> Cookies

  4. Find the cookie named switch_auth_session.
  5. Copy it in this exact format:
    switch_auth_session=PASTE_THE_COOKIE_VALUE_HERE
  6. Save that value as SWITCH_LIVE_STUDENT_COOKIE.
  7. Sign out, or open a separate browser profile or private window, then sign in as the admin user.
  8. Repeat the same cookie steps and save that value as SWITCH_LIVE_ADMIN_COOKIE.

Env file target

Paste both cookie values into `.env.local`

SWITCH_LIVE_BASE_URL=https://your-live-domain.com
SWITCH_LIVE_STUDENT_COOKIE=switch_auth_session=student-cookie-value
SWITCH_LIVE_ADMIN_COOKIE=switch_auth_session=admin-cookie-value

Once those values are in `.env.local`, the live verification scripts can reuse them for the final auth walkthrough.