Skip to Content
API referenceSIWX ServerSrcInterfacesServerVerifyOptions

API Reference — @tuwaio/siwx (CAIP-122 Authentication Layer)


ServerVerifyOptions

Defined in: packages/siwx-server/src/types.ts:10 

Options for the verifySiwxPayload function.

Properties

publicClient?

optional publicClient?: any

Defined in: packages/siwx-server/src/types.ts:29 

Optional viem PublicClient instance for EVM chain EIP-1271 (smart contract wallet) verification.


skipExpiration?

optional skipExpiration?: boolean

Defined in: packages/siwx-server/src/types.ts:23 

If true, skips the expirationTime validation check. Not recommended for production use.

Default

false

usedNonces?

optional usedNonces?: Set<string>

Defined in: packages/siwx-server/src/types.ts:16 

A set of nonces that have already been used. If the payload’s nonce is found in this set, verification will fail to prevent replay attacks. You should populate this from your session store or cache.

Last updated on