@ambire/login-sdk-web3-react
v0.1.6
Published
Ambire Wallet Login SDK web3-react module
Downloads
20
Keywords
Readme
@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)
)