Skip to Content
API referenceSIWX ServerSrcInterfacesCookieOptions

API Reference — @tuwaio/siwx (CAIP-122 Authentication Layer)


CookieOptions

Defined in: packages/siwx-server/src/types.ts:66 

Options for cookie session serialization.

Properties

domain?

optional domain?: string

Defined in: packages/siwx-server/src/types.ts:85 

The cookie domain.


maxAge?

optional maxAge?: number

Defined in: packages/siwx-server/src/types.ts:76 

Max age in seconds. Defaults to 7 days.

Default

604800

name?

optional name?: string

Defined in: packages/siwx-server/src/types.ts:71 

The name of the cookie.

Default

"siwx-session"

path?

optional path?: string

Defined in: packages/siwx-server/src/types.ts:81 

The cookie path.

Default

"/"

sameSite?

optional sameSite?: "Strict" | "Lax" | "None"

Defined in: packages/siwx-server/src/types.ts:95 

The SameSite policy.

Default

"Strict"

secure?

optional secure?: boolean

Defined in: packages/siwx-server/src/types.ts:90 

Whether to set the Secure flag.

Default

true
Last updated on