Thanks for reaching out! It looks like you’re experiencing a network mismatch issue in your Web3Auth setup. Let’s go through your setup details:
SDK Details: Plug n Play
Issue: “Network mismatch. Provided network ‘testnet’ does not match project network ‘sapphire_devnet’”
The error message indicates that the network specified in your Web3Auth configuration (testnet) doesn’t match the project’s network setting (sapphire_devnet). Here’s what you might want to check or do:
Check Your Project’s Network Setting:
Ensure that your project’s network setting in the Web3Auth dashboard matches your code’s configuration. It seems you’re targeting the Sepolia Testnet. Confirm this in your project settings.
Update Your Code Accordingly:
If your project should indeed be on the Sepolia Testnet, ensure your project settings reflect this. Alternatively, if sapphire_devnet is correct, update your code to match that instead.
Client ID Configuration:
Double-check that the client ID being used corresponds to the correct network configuration.
Please let me know if you need further assistance after checking these settings! If you still encounter issues, provide a screenshot of your configuration from the Web3Auth dashboard, and we can delve deeper.
Hope this helps!
Note: This response was generated by an AI bot and may require further verification. The Web3Auth support 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. Web3Auth Developer Office Hours
The error message indicates that the network mismatch is due to your Web3Auth setup using TESTNET, while your project on the Web3Auth dashboard is configured for sapphire_devnet.
To resolve this, please update your web3AuthNetwork from:
web3AuthNetwork: WEB3AUTH_NETWORK.TESTNET
to
web3AuthNetwork: WEB3AUTH_NETWORK.SAPPHIRE_DEVNET
This should align your code with your project’s network configuration.