UNPKG

@web3auth/metamask-adapter

Version:
65 lines (41 loc) 2.71 kB
# Web3Auth Metamask Adapter [![npm version](https://img.shields.io/npm/v/@web3auth/metamask-adapter?label=%22%22)](https://www.npmjs.com/package/@web3auth/metamask-adapter/v/latest) [![minzip](https://img.shields.io/bundlephobia/minzip/@web3auth/metamask-adapter?label=%22%22)](https://bundlephobia.com/result?p=@web3auth/metamask-adapter@latest) > Web3Auth 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. Metamask Adapter allows your Web3Auth Instance to connect to login with Metamask Wallet. ## 📖 Documentation Read more about the Web3Auth Metamask Adapter in the [official Web3Auth Documentation](https://web3auth.io/docs/sdk/web/adapters/metamask). ## 💡 Features - Plug and Play, OAuth based Web3 Authentication Service - Fully decentralized, non-custodial key infrastructure - End to end Whitelabelable solution - Threshold Cryptography based Key Reconstruction - Multi Factor Authentication Setup & Recovery (Includes password, backup phrase, device factor editing/deletion etc) - Support for WebAuthn & Passwordless Login - Support for connecting to multiple wallets - DApp Active Session Management ...and a lot more ## 📄 Basic Details - Adapter Name: `metamask` - Package Name: [`@web3auth/metamask-adapter`](https://web3auth.io/docs/sdk/web/adapters/metamask) - authMode: `DAPP` - chainNamespace: `EIP155` - Default: `YES` ## 🔗 Installation ```shell npm install --save @web3auth/metamask-adapter ``` ## 🩹 Example ```ts import { MetamaskAdapter } from "@web3auth/metamask-adapter"; const metamaskAdapter = new MetamaskAdapter(); // it will add/update the metamask adapter in to web3auth class web3auth.configureAdapter(metamaskAdapter); ``` Checkout the examples for your preferred blockchain and platform in our [examples repository](https://github.com/Web3Auth/examples/) ## 🌐 Demo Checkout the [Web3Auth Demo](https://demo-app.web3auth.io/) to see how Web3Auth can be used in your application. ## 💬 Troubleshooting and Support - Have a look at our [Community Portal](https://community.web3auth.io/) to see if anyone has any questions or issues you might be having. Feel free to reate new topics and we'll help you out as soon as possible. - Checkout our [Troubleshooting Documentation Page](https://web3auth.io/docs/troubleshooting) to know the common issues and solutions. - For Priority Support, please have a look at our [Pricing Page](https://web3auth.io/pricing.html) for the plan that suits your needs.