basalt / auth/src / SessionCookieOptions
Interface: SessionCookieOptions
Defined in: auth/src/auth.ts:223
Properties
httpOnly?
> optional httpOnly?: boolean
Defined in: auth/src/auth.ts:229
Whether the browser may expose the cookie to JavaScript. Default: true.
name?
> optional name?: string
Defined in: auth/src/auth.ts:225
Cookie name. Default: basalt_session.
path?
> optional path?: string
Defined in: auth/src/auth.ts:227
Cookie path. Default: /.
sameSite?
> optional sameSite?: "Strict" | "Lax" | "None"
Defined in: auth/src/auth.ts:231
SameSite policy. Default: Lax.
secure?
> optional secure?: boolean
Defined in: auth/src/auth.ts:236
Whether to require HTTPS. Defaults to true unless NODE_ENV is explicitly development or test (an unset NODE_ENV counts as production).