@arcana/auth-web3-react-v6
TypeScript icon, indicating that this package has built-in type declarations

0.0.3 • Public • Published

Arcana auth Web3 react v6 connector

Arcana auth connector for web3-react

Install

yarn add @arcana/auth-web3-react-v6 @arcana/auth

Usage

With connect modal

import { ArcanaConnector } from "@arcana/auth-web3-react-v6"
import { AuthProvider } from "@arcana/auth"
import { initializeConnector } from "@web3-react/core"


const auth = new AuthProvider(`${arcana_client_id}`) // Singleton


export const connector = new ArcanaConnector(auth, {
  chainId: 1
})

With custom UI

import { ArcanaConnector } from "@arcana/auth-web3-react-v6"
import { AuthProvider } from "@arcana/auth"
import { initializeConnector } from "@web3-react/core"


const auth = new AuthProvider(`${arcana_client_id}`) // Singleton


export const connector = new ArcanaConnector(auth, {
  chainId: 1,
  login: {
    provider: 'google',
    // email: 'abc@example.com' // email is needed if provider is passwordless
  }
})

// OR

connector.setLogin({ provider: "google" })

Readme

Keywords

none

Package Sidebar

Install

npm i @arcana/auth-web3-react-v6

Weekly Downloads

0

Version

0.0.3

License

MIT

Unpacked Size

8.79 kB

Total Files

6

Last publish

Collaborators

  • muktanshu-mishra
  • arcanarnsdk
  • shalooshalini
  • fagunb
  • mmjee-nf
  • karthik-aracana
  • shrinath-newfang
  • makyl
  • sauravnk30
  • adminarcana