@ambire/login-sdk-web3-react
A module for integrating Ambire Wallet Login for dApps using web3-react.
Install
npm install @ambire/login-sdk-web3-react
Usage
import { initializeConnector } from '@web3-react/core'
import { AmbireConnector } from '@ambire/login-sdk-web3-react'
const sdkOptions = {
dappName: 'Your dApp name',
dappIconPath: '<url-to-dApp-icon>', // optional, but needed for dApp icon to be shown in Ambire Login modal
}
const [ambireConnector, ambireConnectHooks] = initializeConnector<AmbireConnector>(
(actions) => new AmbireConnector(actions, sdkOptions, onErrorFunction)
)