Interface TransactionCookieOptions

interface TransactionCookieOptions {
    prefix?: string;
    sameSite?: "lax" | "strict" | "none";
    secure?: boolean;
}

Properties

prefix?: string

The prefix of the cookie used to store the transaction state.

Default: __txn_{state}.

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

The sameSite attribute of the transaction cookie.

Default: lax.

secure?: boolean

The secure attribute of the transaction cookie.

Default: depends on the protocol of the application's base URL. If the protocol is https, then true, otherwise false.