AdonisJS API
    Preparing search index...

    Type Alias ConfigInput<KnownStores>

    ConfigInput: Partial<SessionConfig> & {
        store: keyof KnownStores | "memory";
        stores: KnownStores;
        clearWithBrowser?: boolean;
        cookie?: Omit<Partial<CookieOptions>, "maxAge" | "expires">;
    }

    Type Parameters

    Type Declaration

    • store: keyof KnownStores | "memory"
    • stores: KnownStores
    • OptionalclearWithBrowser?: boolean

      Whether to clear the session cookie when the browser is closed. When true, creates a session cookie that expires on browser close. Note: Persisted session data continues to exist until it expires.

    • Optionalcookie?: Omit<Partial<CookieOptions>, "maxAge" | "expires">