Auth Wagmi SDK Reference Guide - v3.0.0

Arcana Network Auth-Wagmi SDK


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.