# @web3auth/auth

> Auth sdk for web3auth

Latest version **11.8.3** (published 2026-08-31) · MIT license · 0 weekly downloads

## Install

```sh
npm install @web3auth/auth
pnpm add @web3auth/auth
yarn add @web3auth/auth
bun add @web3auth/auth
```

## Health

**Score 70/100 (B)** — status: active.

Positive: has types; esm support; no vulnerabilities; recently updated; high maintenance score; high quality score.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 11.8.3 |
| Published | 2026-08-31 |
| First published | 2024-08-01 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=22.x |
| Dependencies | 14 |
| Unpacked size | 383.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 139 |
| Author | Torus Labs |
| Maintainers | chaitanyapotti, archit_web3, himanshuconsensys |

## Links

- npm: https://www.npmjs.com/package/@web3auth/auth
- Repository: https://github.com/web3auth/Auth
- Homepage: https://github.com/web3auth/Auth#readme
- Issues: https://github.com/web3auth/Auth/issues
- npm.io page: https://npm.io/package/@web3auth/auth

## Dependencies (14)

- [once](https://npm.io/package/once.md) ^1.4.0
- [klona](https://npm.io/package/klona.md) ^2.0.6
- [events](https://npm.io/package/events.md) ^3.3.0
- [loglevel](https://npm.io/package/loglevel.md) ^1.9.2
- [typed-emitter](https://npm.io/package/typed-emitter.md) ^2.1.0
- [readable-stream](https://npm.io/package/readable-stream.md) ^4.7.0
- [deep-freeze-strict](https://npm.io/package/deep-freeze-strict.md) ^1.1.1
- [@toruslabs/constants](https://npm.io/package/@toruslabs/constants.md) ^16.1.1
- [@toruslabs/customauth](https://npm.io/package/@toruslabs/customauth.md) ^22.3.3
- [json-stable-stringify](https://npm.io/package/json-stable-stringify.md) ^1.3.0
- [@toruslabs/ffjavascript](https://npm.io/package/@toruslabs/ffjavascript.md) ^6.0.0
- [@toruslabs/secure-pub-sub](https://npm.io/package/@toruslabs/secure-pub-sub.md) ^4.3.0
- [@toruslabs/session-manager](https://npm.io/package/@toruslabs/session-manager.md) ^5.6.0
- [@toruslabs/metadata-helpers](https://npm.io/package/@toruslabs/metadata-helpers.md) ^8.2.0

## Recent versions

- 11.8.3 (latest) — 2026-08-31
- 11.8.2 — 2026-07-21
- 11.8.1 — 2026-05-11
- 11.8.0 — 2026-04-28
- 11.7.0 — 2026-04-27
- 11.6.0 — 2026-04-13
- 11.5.0 — 2026-04-06
- 11.4.3 — 2026-03-31
- 11.4.2 — 2026-03-25
- 11.4.1 — 2026-03-25
- 11.4.0 — 2026-03-20
- 11.3.0 — 2026-03-10
- 11.2.1 — 2026-03-06
- 11.2.0 — 2026-03-05
- 11.1.1 — 2026-03-04
- … 39 more at https://npm.io/package/@web3auth/auth/versions

## README

# Auth SDK by Web3Auth

> [Web3Auth](https://web3auth.io) is where passwordless auth meets non-custodial key infrastructure for Web3 apps and wallets. By aggregating OAuth (Google, Twitter, Discord) logins, different wallets and innovative Multi Party Computation (MPC) - Web3Auth provides a seamless login experience to every user on your application.

[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier)
![npm](https://img.shields.io/npm/dw/@web3auth/auth) |

## Introduction

Your Web3Auth account is a cryptographic key that acts as a proxy to traditional SSOs. Accounts are secured across user devices and authentication methods - there is no central server, no data honey pot.
It combines both [CustomAuth](https://github.com/torusresearch/CustomAuth) and [tKey](https://github.com/tkey/tkey) and provides you with a nice UI and UX flows

## Features

- Typescript compatible. Includes Type definitions

Please refer to docs for API Reference available [here](https://docs.tor.us/open-login/api-reference/installation).

## Installation

### Bundling

Each sub package is distributed in 3 formats

- `esm` build `dist/lib.esm/index.js` in es6 format
- `commonjs` build `dist/lib.cjs/index.js` in es5 format

By default, the appropriate format is used for your specified usecase
You can use a different format (if you know what you're doing) by referencing the correct file

The cjs build is not polyfilled with core-js.
It is upto the user to polyfill based on the browserlist they target

### Directly in Browser

CDN's serve the non-core-js polyfilled version by default. You can use a different

jsdeliver

```js
<script src="https://cdn.jsdelivr.net/npm/auth"></script>
```

unpkg

```js
<script src="https://unpkg.com/auth"></script>
```

## Build

Ensure you have a `Node.JS` development environment setup:

```
git clone https://github.com/web3auth/Auth.git
cd Auth
npm i
npm run build
```

To run tests:

```
npm test
```

## Requirements

- This package requires a peer dependency of `@babel/runtime`
- Node 22+
- You will need to whitelist your domain on [developer dashboard](https://dashboard.web3auth.io)

## 💬 Troubleshooting and Discussions

- Have a look at our [GitHub Discussions](https://github.com/Web3Auth/Web3Auth/discussions?discussions_q=sort%3Atop) to see if anyone has any questions or issues you might be having.
- Checkout our [Troubleshooting Documentation Page](https://web3auth.io/docs/troubleshooting) to know the common issues and solutions
- Join our [Discord](https://discord.gg/web3auth) to join our community and get private integration support or help with your integration.

## License

`AuthSdk` is [MIT Licensed](LICENSE)

TODO: fix demo app ci

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