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?
optionaldomain?:string
Defined in: packages/siwx-server/src/types.ts:85
The cookie domain.
maxAge?
optionalmaxAge?:number
Defined in: packages/siwx-server/src/types.ts:76
Max age in seconds. Defaults to 7 days.
Default
604800name?
optionalname?:string
Defined in: packages/siwx-server/src/types.ts:71
The name of the cookie.
Default
"siwx-session"path?
optionalpath?:string
Defined in: packages/siwx-server/src/types.ts:81
The cookie path.
Default
"/"sameSite?
optionalsameSite?:"Strict"|"Lax"|"None"
Defined in: packages/siwx-server/src/types.ts:95
The SameSite policy.
Default
"Strict"secure?
optionalsecure?:boolean
Defined in: packages/siwx-server/src/types.ts:90
Whether to set the Secure flag.
Default
true