Skip to main content
function verifySiweSignature(options: VerifySiweSignatureOptions): Promise<VerifySiweSignatureResult>;
Verifies the Sign In With Ethereum (SIWE/EIP-4361) signature to complete authentication. This is the second step in the SIWE authentication flow, used after signInWithSiwe.

Parameters

ParameterTypeDescription
optionsVerifySiweSignatureOptionsThe options for the verification.

Returns

Promise<VerifySiweSignatureResult> The result of the verification, including the authenticated user.

Example

const result = await verifySiweSignature({
  flowId: "flow-id-from-signInWithSiwe",
  signature: "0x1234...abcd", // The signature produced by the user's wallet
});