Thank you for reaching out with your issue. It looks like you’re correctly setting up your configuration for the Sepolia testnet, but you might be right about a potential mismatch between SAPPHIRE_DEVNET and Sepolia.
Please ensure the WEB3AUTH_NETWORK and chainConfig chain ID are aligned. The SAPPHIRE_DEVNET is tuned for Torus’s Sapphire instance, which may not be the same as Sepolia.
Initialization Code Snippet Overview:
You’re using Single Factor Auth Web SDK.
Current chainConfig for Sepolia looks correct: chainId: '11155111'.
WEB3AUTH_NETWORK.SAPPHIRE_DEVNET might be misaligned with Sepolia.
Configuration Check:
The WEB3AUTH_NETWORK should potentially be set to MAINNET or another supported test network depending on your setup.
To assist further, please try adjusting the WEB3AUTH_NETWORK setting. Instead of SAPPHIRE_DEVNET, try using MAINNET or the specific network that you intend to use and fits with Sepolia.
const web3auth = new Web3Auth({
clientId: WEB3_CLIENT_ID,
web3AuthNetwork: WEB3AUTH_NETWORK.MAINNET, // Change to MAINNET or appropriate network
privateKeyProvider,
});
Alternatively, you may want to verify the compatibility of SAPPHIRE_DEVNET with Sepolia, as typically SAPPHIRE_DEVNET might be designed for a different chain setup.
This response was generated by the Web3Auth Bot. A team member from Web3Auth will review your issue and provide further insights shortly.