StatelessDemoSiwxHandlerOptions
Defined in: siwx-server/src/next.ts:74
Options of createStatelessDemoSiwxHandler.
Properties
cookieOptions?
optionalcookieOptions?:CookieOptions
Defined in: siwx-server/src/next.ts:90
Attributes of the session cookie. maxAge is replaced by the token TTL.
demoLimits?
optionaldemoLimits?:StatelessDemoLimits
Defined in: siwx-server/src/next.ts:95
Request limits (maximum body size of POST /verify).
policy?
optionalpolicy?: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?
optionalttlSeconds?: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?
optionalverifyOptions?:Omit<ServerVerifyOptions,"policy">
Defined in: siwx-server/src/next.ts:100
Extra options of verifySiwxPayload, for example publicClient or usedNonces.