CSRF-X Auth Library - v1.0.3
    Preparing search index...

    Interface SessionData

    Complete session data stored in the cache.

    This object is serialized to JSON and saved to disk. All fields are read‑only
    to encourage immutability. Use sessionWithCsrfToken to create updated copies.

    0.1.1

    interface SessionData {
        cookies: readonly Cookie[];
        csrfToken: string;
        loggedIn: boolean;
        timestamp: number;
    }
    Index

    Properties

    cookies: readonly Cookie[]

    List of cookies associated with the session.

    csrfToken: string

    Current CSRF token (may be updated over time, e.g., after token refresh).

    loggedIn: boolean

    Whether the session is considered logged in (typically true after successful login).

    timestamp: number

    Unix timestamp (milliseconds) when this session was created or last updated.

    Used by isSessionFresh and CacheManager.loadFresh to determine
    session freshness.