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

    Interface LogoutOptions

    Configuration options for the LogoutClient.

    All fields are optional. If omitted, the client reads from environment
    variables (.env file or Bun.env). Explicit constructor options take
    precedence over environment variables.

    0.1.1

    interface LogoutOptions {
        baseUrl?: string;
        cacheDir?: string;
        timeoutMs?: number;
        sendReferer?: boolean;
        sendOrigin?: boolean;
    }
    Index

    Properties

    baseUrl?: string

    Override the base URL of the target server.

    Uses BASE_URL from environment variables.

    Must be a valid HTTP/HTTPS URL.

    cacheDir?: string

    Custom directory for session cache.

    ~/.cache/libts-csrfx-auth

    The directory will be created automatically if it does not exist.

    timeoutMs?: number

    Request timeout in milliseconds.

    15000 (15 seconds)

    sendReferer?: boolean

    Whether to send the Referer header in the logout request.

    true

    Some servers require a Referer header for CSRF protection.

    sendOrigin?: boolean

    Whether to send the Origin header in the logout request.

    true

    Some servers require an Origin header for CORS or CSRF validation.