API Reference — @tuwaio/siwx (CAIP-122 Authentication Layer)
ServerVerifyOptions
Defined in: packages/siwx-server/src/types.ts:10
Options for the verifySiwxPayload function.
Properties
policy?
optionalpolicy?:SiwxVerificationPolicy
Defined in: packages/siwx-server/src/types.ts:28
Optional verification policy to enforce on the message fields.
publicClient?
optionalpublicClient?:any
Defined in: packages/siwx-server/src/types.ts:34
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.