Skip to Content

SiwxApiHandlerOptions

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

Properties

cookieOptions?

optional cookieOptions?: CookieOptions

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

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


nonceStore

nonceStore: SiwxNonceStore

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

Durable single-use nonce store shared by every server instance (your Redis or database implementation; MemorySiwxNonceStore in development and tests).


policy?

optional policy?: SiwxVerificationPolicy

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

Policy enforced by POST /verify (domain, URI, chains, timing). Set at least expectedDomain: without a policy the message domain is not checked.


sessionStore

sessionStore: SiwxSessionStore

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

Durable session store shared by every server instance (your Redis or database implementation; MemorySiwxSessionStore in development and tests).


ttlSeconds?

optional ttlSeconds?: number

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

Session lifetime in seconds, used for the store record and the cookie Max-Age. Defaults to cookieOptions.maxAge, then to 604800 (7 days).


verifyOptions?

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

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

Extra options of verifySiwxPayload, for example publicClient for EIP-1271 wallets.

Last updated on