Node.js CLI examples using @web3auth/node-sdk for backend custom-auth flows.
These examples are intentionally minimal and focus on:
- JWT-based login with
authConnectionId - Wallet reconstruction through Web3Auth Sapphire networks
- Basic EVM or Solana signing/balance calls
- EVM Quick Start: custom JWT auth + EVM account/balance/sign message
- Solana Quick Start: custom JWT auth + Solana account/balance/sign message
- Firebase Quick Start: Firebase ID token -> Web3Auth connect -> EVM calls
cd <example-folder>
npm install
npm startExample:
cd evm-quick-start
npm install
npm start- Create a project in Web3Auth Dashboard
- Configure a custom auth connection and note its
authConnectionId - Keep your
Client ID,authConnectionId, andweb3AuthNetworkconsistent
- This repo uses MetaMask Embedded Wallets docs and APIs (legacy
web3auth.io/docslinks are outdated). - Node SDK is backend-only and custom-auth-focused; it does not provide social-login UI.
- JWTs must be freshly issued; stale
iatvalues can fail login. - These examples include demo credentials and keys for learning only. Do not use as-is in production.
MIT - see LICENSE.