SessionStoreOptions | @auth0/nextjs-auth0 - v4.6.0
Description: Documentation for @auth0/nextjs-auth0

# Interface SessionStoreOptions

interface SessionStoreOptions {
absoluteDuration?: number;
cookie?: SessionCookieOptions;
cookieOptions?: SessionCookieOptions;
inactivityDuration?: number;
rolling?: boolean;
secret: string;
store?: SessionDataStore;
}

#### Hierarchy (View Summary)

- SessionConfiguration
  - SessionStoreOptions

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

#####
Index

### Properties

absoluteDuration?
cookie?
cookieOptions?
inactivityDuration?
rolling?
secret
store?

##
Properties

### `Optional`absoluteDuration

absoluteDuration?: number

The absolute duration after which the session will expire. The value must be specified in seconds..

Once the absolute duration has been reached, the session will no longer be extended.

Default: 3 days.

Inherited from SessionConfiguration.absoluteDuration

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

### `Optional`cookie

cookie?: SessionCookieOptions

The options for the session cookie.

Inherited from SessionConfiguration.cookie

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

### `Optional`cookieOptions

cookieOptions?: SessionCookieOptions

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

### `Optional`inactivityDuration

inactivityDuration?: number

The duration of inactivity after which the session will expire. The value must be specified in seconds.

The session will be extended as long as it was active before the inactivity duration has been reached.

Default: 1 day.

Inherited from SessionConfiguration.inactivityDuration

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

### `Optional`rolling

rolling?: boolean

A boolean indicating whether rolling sessions should be used or not.

When enabled, the session will continue to be extended as long as it is used within the inactivity duration. Once the upper bound, set via the `absoluteDuration`, has been reached, the session will no longer be extended.

Default: `true`.

Inherited from SessionConfiguration.rolling

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

### secret

secret: string

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

### `Optional`store

store?: SessionDataStore

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