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
npm install --save @arcana/auth @arcana/auth-wagmi
import { ArcanaConnector } from "@arcana/auth-wagmi"
import { AuthProvider } from "@arcana/auth"
const auth = new AuthProvider(`${arcana_client_id}`)
const connector = ArcanaConnector({
auth,
})
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.