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

# Interface SessionCookieOptions

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

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

#####
Index

### Properties

domain?
name?
path?
sameSite?
secure?
transient?

##
Properties

### `Optional`domain

domain?: string

Specifies the value for the Set-Cookie attribute. By default, no domain is set, and most clients will consider the cookie to apply to only the current domain.

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

### `Optional`name

name?: string

The name of the session cookie.

Default: `__session`.

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

### `Optional`path

path?: string

The path attribute of the session cookie. Will be set to '/' by default.

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

### `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

### `Optional`transient

transient?: boolean

The transient attribute of the session cookie. When true, the cookie will not persist beyond the current session.

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