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

policy?

optional policy?: SiwxVerificationPolicy

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

Optional verification policy to enforce on the message fields.


publicClient?

optional publicClient?: any

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

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.

Last updated on