@bearnjs/rest
    Preparing search index...

    Interface CookieOptions

    Represents the options available for setting HTTP cookies.

    interface CookieOptions {
        domain?: string;
        httpOnly?: boolean;
        maxAge?: number;
        path?: string;
        sameSite?: "strict" | "lax" | "none";
        secure?: boolean;
    }
    Index

    Properties

    domain?: string

    Defines the domain scope of the cookie.

    httpOnly?: boolean

    Indicates if the cookie is accessible only through HTTP(S).

    maxAge?: number

    Specifies the maximum age of the cookie in seconds.

    path?: string

    Defines the path scope of the cookie.

    sameSite?: "strict" | "lax" | "none"

    Specifies the SameSite attribute of the cookie.

    secure?: boolean

    Indicates if the cookie requires a secure connection (HTTPS).