Skip to content

Web3auth Signer

Web3AuthSigner is a signer implementation which extends SmartAccountAuthenticator to leverage the web3auth web modal SDK. It supports features such as authentication, message and typed data signing, and authentication details retrieval.

Web3AuthSigner provides implementations for all methods on SmartAccountAuthenticator:

  1. authenticate -- supports user authentication.
  2. getAddress -- gets the address of the smart contract account's connected EOA signer account.
  3. signMessage -- supports message signatures.
  4. signTypedData -- supports typed data signatures.
  5. getAuthDetails -- supports authentication details retrieval.

Install Dependencies

Web3AuthSigner requires installation of the @web3auth/modal and @web3auth/base SDKs. aa-signers lists them as optional dependencies.

npm
npm i -s @web3auth/modal
npm i -s @web3auth/base

Developer Links