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

3.0.0 • Public • Published



Twitter URL

Arcana Auth-Wagmi SDK

What is Auth-Wagmi SDK?

Auth-Wagmi SDK is a companion SDK to Arcana Auth. It is required for enabling social logins in dApps that use Wagmi wallet connector.

For wagmi >= 2.0.0, use @arcana/auth-wagmi@3.y.z

Install

npm install --save @arcana/auth @arcana/auth-wagmi

Usage

With plug n play UI

import { ArcanaConnector } from "@arcana/auth-wagmi"
import { AuthProvider } from "@arcana/auth"

const auth = new AuthProvider(`${arcana_client_id}`)
const connector = ArcanaConnector({
  auth,
})

With custom UI

import { ArcanaConnector } from "@arcana/auth-wagmi"
import { AuthProvider } from "@arcana/auth"

const auth = new AuthProvider(`${arcana_client_id}`)
const connector = ArcanaConnector({
  auth,
  loginType: {
    provider: "google"
  } 
})

For more details on connectors and integrating your app with Wagmi, see Wagmi documentation.

Readme

Keywords

none

Package Sidebar

Install

npm i @arcana/auth-wagmi

Weekly Downloads

19

Version

3.0.0

License

MIT

Unpacked Size

49.6 kB

Total Files

6

Last publish

Collaborators

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