My app was working fine 2-3 days ago. Suddenly this error started coming in, without changing anything.
WalletInitializationError: Invalid params passed in, openlogin is not a valid adapter
Thanks for providing the details. It seems like the error you’re encountering might be related to the initialization parameters or a compatibility issue with the OpenloginAdapter. Let’s confirm a few things to help troubleshoot:
SDK Version - You mentioned using the “latest” version. Please confirm you’re referencing the correct and most up-to-date version using the correct format:
Initialization Code - Your initialization snippet looks almost correct. However, it’s important to ensure field names and configurations match the SDK requirements. Here are some observations:
Verify that privateKeyProvider should be provided in web3auth’s Adapter
Make sure OpenloginAdapter is imported and initialized correctly.
Kindly update your code to the following and see if the issue resolves:
Hey @sau with the v9, the Openlogin adapter has been changed to Auth adapter to have better naming convention. Please install this package auth-adapter instead of openlogin-adapter. You can change the OpenloginAdapter to AuthAdapter. We’ll be soon updating docs and release a migration guide. Sorry for inconvenience.