This topic was originally posted by sau on 9/19/2024.
This content has been migrated from our previous community forum to preserve valuable discussions.
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.