API Reference — @tuwaio/siwx (CAIP-122 Authentication Layer)
verifySiwxPayload()
verifySiwxPayload(
payload,options?):Promise<ServerVerifyResult>
Defined in: packages/siwx-server/src/server.ts:37
Parses and validates a raw CAIP-122 payload (message + signature) on the server side. Dynamically routes verification to the correct chain adapter based on the CAIP-2 namespace.
Parameters
payload
SiwxVerifyPayload
The { message, signature } payload sent by the client.
options?
ServerVerifyOptions = {}
Server-side verification options (policy, nonce replay protection, etc.).
Returns
Promise<ServerVerifyResult>
A ServerVerifyResult with success: true and the parsed session data, or an error.
Last updated on