Hi Albert — thanks for the clear question. You’re asking about a migration (not reporting a runtime error), so this is about moving your DApp from @web3auth/single-factor-auth v9 → v10.
Summary of what I’ve pulled from your message
SDK: MetaMask Embedded Wallets (Web3Auth)
Current package/version: @web3auth/single-factor-auth v9 (will be deprecated)
Target: v10 migration
Platform: DApp / web (assumed — tell me if it’s another platform)
What to know and the recommended migration path
In Web3Auth v10, the single-factor (passwordless) flow is handled by the OpenLogin adapter functionality and is integrated through the Web3Auth core/modal flow rather than a dedicated single-factor package. In short: replace the old @web3auth/single-factor-auth usage with the OpenLogin adapter + Web3Auth (modal or core) in v10.
High-level example (pseudocode) — adapt to your project and exact v10 package names:
The exact package names and API details are in Web3Auth’s v10 docs — I recommend checking their v10 migration docs and the OpenLoginAdapter docs for the precise import names and options: Introduction | Documentation | Web3Auth
If you want a precise code migration
If you can paste your current initialization + login snippets (the minimal code that uses @web3auth/single-factor-auth), I’ll produce a drop-in v10 version for you.
Only attach browser console logs/screenshots if you hit runtime errors after migration — we don’t need them yet.
If you’d like I can also:
Provide a line-by-line migration of your current snippet
Verify exact package names to install (I can confirm the npm packages you should use for v10)
Would you like me to convert your current init/login code to v10? If yes, paste the snippet you’re using and I’ll return the converted code.
Note: This response was generated by an AI bot and may require further verification. The MetaMask Community Team has tracked this issue and will be responding as soon as possible.
Additionally, we would recommend you to join our biweekly Office Hours to get this resolved even faster. MetaMask Developer Office Hours