Error while logging in when on Live App

Please provide the following details too when asking for help in this category:
Hello,
We recently deployed our DApp to production and sometimes when users try to sign in with web3auth, they get this error (screenshot attached) on the pop up.

From the code, everything seems okay but sometimes users are faced with this error. Please what could likely be the problem and can anyone assist look into this issue?

  • SDK Version:
  • Platform:
  • Browser Console Screenshots:
  • Related to Custom Authentication? Please provide the following info too: (Optional)
    • Verifier Name:
    • JWKS Endpoint:
    • Sample idToken(JWT)

Please provide the Web3Auth initialization and login code snippet below:

@u.h.ugwu Thanks for your recent communication.

The error indicates you have setup your project on Legacy Cyan Mainnetin your Dashboard but your code has the wrong network. Check the parameter web3AuthNetwork in your initialization code to also be cyan

Please try changing the web3AuthNetwork to cyan in your code and let me know if it works for you.

const chainConfig = {
chainNamespace: “solana”,
chainId: “0x1”, // Please use 0x1 for Mainnet, 0x2 for Testnet, 0x3 for Devnet
rpcTarget: process.env.NEXT_PUBLIC_RPC_TARGET,
displayName: “Solana Mainnet”,
blockExplorer: “https://explorer.solana.com”,
ticker: “SOL”,
tickerName: “Solana”,
};

const web3auth = new Web3AuthNoModal({
    clientId: process.env.NEXT_PUBLIC_PROD_CLIENT_ID,
    web3AuthNetwork: "cyan",
    chainConfig: chainConfig,
});

Here is my initialization code. It works! I am not saying that it doesn’t but sometimes, users get to face the error I screenshotted above and I am wondering why that happens.

@u.h.ugwu If any of your users encounter the issue again , do share the console logs from the page they get stuck and ensure these users who experience the issue are not using VPN when connecting.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.