# @arcana/auth-web3-react

> Web3React connector for Arcana Auth

Latest version **0.0.1** (published 2023-05-22) · MIT license · 0 weekly downloads

## Install

```sh
npm install @arcana/auth-web3-react
pnpm add @arcana/auth-web3-react
yarn add @arcana/auth-web3-react
bun add @arcana/auth-web3-react
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.1 |
| Published | 2023-05-22 |
| First published | 2023-05-04 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 8.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | makylfang |
| Maintainers | arcanarnsdk, shalooshalini, fagunb, mmjee-nf, karthik-aracana, shrinath-newfang, makyl, sauravnk30, adminarcana |

## Links

- npm: https://www.npmjs.com/package/@arcana/auth-web3-react
- npm.io page: https://npm.io/package/@arcana/auth-web3-react

## Dependencies (1)

- [@web3-react/types](https://npm.io/package/@web3-react/types.md) ^8.2.0

## Recent versions

- 0.0.1 (latest) — 2023-05-22
- 0.0.1-beta.3 (001beta3) — 2023-05-22
- 0.0.1-beta.2 (001beta2) — 2023-05-16
- 0.0.1-beta.1 (001beta1) — 2023-05-04

## README

# Arcana auth Web3 react connector

Arcana auth connector for [web3-react](https://github.com/Uniswap/web3-react)

## Install

```sh
yarn add @arcana/auth-web3-react @arcana/auth
```

## Usage

With connect modal

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


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


export const [authConnect, hooks] = initializeConnector(
  (actions) =>
    new ArcanaConnector(auth, {
      actions,
    })
)
```

With custom UI

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


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


export const [authConnect, hooks] = initializeConnector(
  (actions) =>
    new ArcanaConnector(auth, {
      actions,
      login: {
        provider: 'passwordless',
        email: 'abc@example.com'
      } // either add here or in setLogin function
    })
)

// OR

authConnect.setLogin({ provider: "google" })
```

---
_Source: https://npm.io/package/@arcana/auth-web3-react · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
