SessionCookieOptions | @auth0/nextjs-auth0 - v4.0.1
Description: Documentation for @auth0/nextjs-auth0

# Interface SessionCookieOptions

interface SessionCookieOptions {
name?: string;
sameSite?: "lax" | "strict" | "none";
secure?: boolean;
}

- Defined in src/server/session/abstract-session-store.ts:9

#####
Index

### Properties

name?
sameSite?
secure?

##
Properties

### `Optional`name

name?: string

The name of the session cookie.

Default: `__session`.

- Defined in src/server/session/abstract-session-store.ts:15

### `Optional`sameSite

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

The sameSite attribute of the session cookie.

Default: `lax`.

- Defined in src/server/session/abstract-session-store.ts:21

### `Optional`secure

secure?: boolean

The secure attribute of the session cookie.

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

- Defined in src/server/session/abstract-session-store.ts:27