Node.js CLI examples using @web3auth/node-sdk v6 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 (viem) or Solana (@solana/kit) 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
Requires Node.js 22+.
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
- Requires Node.js 22+ (
@web3auth/node-sdkv6). - EVM examples use viem
WalletClientsigners returned byconnect(). - Solana example uses @solana/kit for RPC and message signing.
- 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.