Web3Auth web SDK v8 to v10 migration guide
This guide will help you upgrade your Web3Auth SDK integration from v8 directly to the unified Web3Auth Web SDK v10, focusing on core package and initialization changes.
Why migrate to v10?
Web3Auth v10 consolidates functionality into a single powerful SDK that centralizes configuration in the dashboard and eliminates frontend adapter complexity.
Key improvements from v8 to v10:
- Unified SDK Package: Single
@web3auth/modalpackage replaces multiple adapter packages - Dashboard-Centric Configuration: Chain configurations managed via Web3Auth Developer Dashboard (now the Embedded Wallets dashboard)
- Simplified Integration: No more manual
OpenLoginAdapterregistration - Enhanced Developer Experience: Cleaner API with better TypeScript support
Installation
Update to the unified v10 SDK package:
- npm
- Yarn
- pnpm
- Bun
npm uninstall @web3auth/modal @web3auth/openlogin-adapter @web3auth/wallet-services-plugin
npm install @web3auth/modal
yarn remove @web3auth/modal @web3auth/openlogin-adapter @web3auth/wallet-services-plugin
yarn add @web3auth/modal
pnpm remove @web3auth/modal @web3auth/openlogin-adapter @web3auth/wallet-services-plugin
pnpm add @web3auth/modal
bun remove @web3auth/modal @web3auth/openlogin-adapter @web3auth/wallet-services-plugin
bun add @web3auth/modal
For custom blockchain configurations:
- npm
- Yarn
- pnpm
- Bun
npm install @web3auth/ethereum-provider
yarn add @web3auth/ethereum-provider
pnpm add @web3auth/ethereum-provider
bun add @web3auth/ethereum-provider
Breaking changes from v8 to v10
1. Unified SDK package structure
v8 used separate packages:
import { Web3Auth } from '@web3auth/modal'
import { OpenloginAdapter } from '@web3auth/openlogin-adapter'
import { WalletServicesPlugin } from '@web3auth/wallet-services-plugin'
v10 uses a single package:
import { Web3Auth } from '@web3auth/modal'
// Most functionality is now built-in - no separate adapters needed for basic use cases