Metamask adapter keeps prompting to add network

Hello,

Im trying to set web3auth to use a custom network and when i set the parameters for the MetamaskAdapter, it keeps prompting me to add the network even though the network is already there on metamask,

This is my configuration:

const blastRpcProvider = {
name:“Blast”,
chainNamespace: CHAIN_NAMESPACES.EIP155,
chainId: “0x13E31”,
rpcTarget: “https://rpc.blast.io”,
displayName: “Blast”,
blockExplorerUrl: “https://blastscan.io/”,
ticker: “ETH”,
tickerName: “Ethereum”,
};

const metamaskAdapter = new MetamaskAdapter({
clientId,
sessionTime: 86400, // 1 hour in seconds
web3AuthNetwork: “sapphire_mainnet”,
chainConfig:
blastRpcProvider,
});

And this is what happens:

I can approve and add the network and i will succesfully login,
But then when i go back to login again, it will again prompt me to add the network every single time,

Does anyone know why this could be happening?
Thanks!

hi @onlybagsdev

Thanks for reporting this issue.
Can you share with us the version of the packages that you are using ?

Hi tom, thank you for your reply,
Yes of course:
@web3auth/base”: “^8.6.2”,
@web3auth/ethereum-provider”: “^8.6.2”,
@web3auth/metamask-adapter”: “^8.6.2”,
@web3auth/modal”: “^8.6.2”,
@web3auth/openlogin-adapter”: “^8.6.2”,

hi @onlybagsdev

Apologies, but I am unable to replicate the issue. Could you provide a screen recording of the issue?

Thank you.

Here you go!

Video:

Repository:

Additional observations: This behaviour is happening while being on windows and using chrome, it seems like for MAC users it doesnt happen for some reason

Hi @onlybagsdev,

The problem has been resolved and we will release it in production as soon as the testing is completed.

Thank you for your patience!

Thank you very much!