@nirholas/web3auth-examples
v1.0.0
Published
[](https://www.npmjs.com/package/@nirholas/web3auth-examples)
Readme
Web3Auth Plug and Play Examples
Web3Auth is a pluggable auth infrastructure for Web3 wallets and applications. It streamlines onboarding for both mainstream and crypto-native users within minutes by providing familiar authentication experiences.
This repository contains ready-to-use examples for integrating Web3Auth across various frameworks, blockchains, and authentication providers.
🚀 Getting Started
Prerequisites
- Node.js 20+
- npm
- A Web3Auth Client ID from the Web3Auth Dashboard
Quick Setup
Clone the repository:
git clone https://github.com/Web3Auth/web3auth-examples.git cd web3auth-examplesChoose an example that matches your tech stack
Setup the example:
cd <example-directory> cp .env.example .env # Update .env with your Web3Auth Client IDInstall dependencies and run:
npm install npm start
🧩 Example Directory
Quick Starts
| Framework | Example | Description | |-------------|---------|-------------| | React | React Quick Start | Basic EVM integration with React | | Next.js | Next.js Quick Start | Server-side rendering with Next.js | | Vue.js | Vue Quick Start | Vue.js integration with Web3Auth | | Angular | Angular Quick Start | Angular framework integration | | VanillaJS| VanillaJS Quick Start | Plain JavaScript implementation |
📘 Understanding the Examples
Each example follows a similar structure:
- Setup: Initialize Web3Auth with your Client ID
- Authentication: Implement login/logout functionality
- Blockchain Integration: Connect to the specific blockchain
- User Operations: Perform blockchain operations like transactions
📚 Resources
📄 License
MIT
