Skip to Content

StatelessDemoSiwxHandlerOptions

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

Options of createStatelessDemoSiwxHandler.

Properties

cookieOptions?

optional cookieOptions?: CookieOptions

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

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


demoLimits?

optional demoLimits?: StatelessDemoLimits

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

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


policy?

optional policy?: SiwxVerificationPolicy

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

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:89 

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:116 

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:110 

Extra options of verifySiwxPayload, for example publicClient or usedNonces.

Last updated on