Skip to Content

StatelessDemoSiwxHandlerOptions

Defined in: siwx-server/src/next.ts:74 

Options of createStatelessDemoSiwxHandler.

Properties

cookieOptions?

optional cookieOptions?: CookieOptions

Defined in: siwx-server/src/next.ts:90 

Attributes of the session cookie. maxAge is replaced by the token TTL.


demoLimits?

optional demoLimits?: StatelessDemoLimits

Defined in: siwx-server/src/next.ts:95 

Request limits (maximum body size of POST /verify).


policy?

optional policy?: SiwxVerificationPolicy

Defined in: siwx-server/src/next.ts:85 

Policy enforced by POST /verify. For the demo profile, set expectedDomain, requireExpirationTime and a short maxSessionLifetimeSeconds.


signingSecret

signingSecret: string

Defined in: siwx-server/src/next.ts:79 

Server-only HMAC secret of at least 32 characters. Never expose it to the browser. Rotating it invalidates every issued token.


ttlSeconds?

optional ttlSeconds?: number

Defined in: siwx-server/src/next.ts:106 

Token and cookie lifetime in seconds. Defaults to cookieOptions.maxAge, then to 1800 (30 minutes). A message expirationTime, when present, sets the token expiry instead.


verifyOptions?

optional verifyOptions?: Omit<ServerVerifyOptions, "policy">

Defined in: siwx-server/src/next.ts:100 

Extra options of verifySiwxPayload, for example publicClient or usedNonces.

Last updated on