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?
optionalpublicClient?:any
Defined in: packages/siwx-server/src/types.ts:29
Optional viem PublicClient instance for EVM chain EIP-1271 (smart contract wallet) verification.
skipExpiration?
optionalskipExpiration?:boolean
Defined in: packages/siwx-server/src/types.ts:23
If true, skips the expirationTime validation check.
Not recommended for production use.
Default
falseusedNonces?
optionalusedNonces?: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.