@welshare/sdk
    Preparing search index...

    Function verifyAuthProof

    • Verify that a session key was properly authorized by the main wallet used to reconstruct eip 712 messages from stored data

      Parameters

      • authMessage: SessionKeyAuthMessage

        the auth message to verify

      • signerAddress: `0x${string}`

        the Ethereum address of the signer

      • signature: `0x${string}`

        the signature to verify, in string encoded hex format (0x)

      • OptionalpublicClient: {}

        optional a viem PublicClient instance. required to verify smart wallet signatures falls back viem's built in verifyTypedData) for EOAs

      Returns Promise<void>