Please note you are using an older version of Openlogin V3 and need to upgrade to the latest version V7 of Web3Auth Releases · Web3Auth/web3auth-web · GitHub
How to update it, I using via Moralis authen web3auth
Could you please paste your initialization snippet here and also the version of the web3auth modules you’re using?
here bro,
My code:
const { authenticate, enableWeb3 } = useMoralis();
await authenticate({
provider: 'web3Auth',
clientId: process.env.NEXT_PUBLIC_API_KEY_WEB3AUTH,
chainId: process.env.NEXT_PUBLIC_MAIN_NET_CHAINID,
appLogo: process.env.NEXT_PUBLIC_URL + '/logo.png',
rpcTarget: process.env.NEXT_PUBLIC_RPC_TARGET,
uxMode: 'popup',
signingMessage: message,
throwOnError: true,
});
and version
Hi, this is my error I got:
anything update ?
My business stuck because this error :(. I paid for service why no-one support fix this bug ?
Hey @thienphuoc.huynh, are you are on the latest version of Web3Auth? If you were, you wouldn’t be redirected to app.openlogin.com.
Please update to the newest version of Web3Auth.
You not support old version ? OMG
Note: I still redirect OK on Safari or Firefox. Just only Chrome not working
Can you give me sample code for Nextjs using Web3auth with Moralis ?
I can help you with that. Updating @web3auth/base
to the latest while using deprecated packages like @web3auth/web3auth
wouldn’t help. Please note that @web3auth/web3auth
is now @web3auth/modal
sdk and currently it’s on 7.0.5, if my memory serves me right.
Please update to the latest SDK version and let us know.
No, v5 will be sunset soon while v6 will be sunset by the end of this year. And certainly, we are not supporting the deprecated packages. Hence the name, deprecated.
Refer to this announcement.
thank bro for your reply
I will try it
In your implementation please perform a global search for @web3auth/web3auth
and check if you’re using it.
Also, I see in the error that node_modules/moralis-v1/lib/browser/Web3Connector/Web3AuthConnector.js
at line 225 is causing this issue. If you don’t have @web3auth/web3auth
in your code, then it’s probably the moralis
package that’s depending upon deprecated packages.
Please check and let me know what you find.
@thienphuoc.huynh I understand. But if you see at the error message.
It says @web3auth/web3auth
not installed. So there is still some place where the deprecated package is still being referenced.
Okay, please follow these commands on terminal and let me know if you still face these errors.
rm -rf node_modules && rm -f package-lock.json && npm i
OK thank bro, I will try it
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.