Docs

Web3 verification

These are all methods on the SignUp class that allow you to verify a user's sign-up request via a web3 wallet.

prepareWeb3WalletVerification()

Helper method that allows you to initiate a verification process for a web3 wallet public address. It sends the public address to the server and expects a nonce that will need to be signed.

This is equivalent to calling SignUp.prepareVerification("web3_metamask_signature").

function prepareWeb3WalletVerification(): Promise<SignUpResource>;

prepareWeb3WalletVerification() returns

TypeDescription
Promise<SignUpResource>A Promise which resolves to the current SignUp.

attemptWeb3WalletVerification()

Helper method that attempts to complete the verification process for a web3 wallet public address.

function attemptWeb3WalletVerification(params: AttemptWeb3WalletVerificationParams): Promise<SignUp>;
  • Name
    signature
    Type
    string
    Description

    The signature that was generated after prepareVerification was called.

attemptWeb3WalletVerification() returns

TypeDescription
Promise<SignUpResource>A Promise which resolves to the current SignUp.

Feedback

What did you think of this content?