You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
where the last option, signOutOnNetworkChange which is set to false, doesn't work as expected. Whenever the user switches networks it asks to sign the message again, otherwise, it calls the signOut function and logs the user out.
I noticed that this file seems to be responsible for calling the signOut function: packages/scaffold/src/modal/w3m-modal/index.ts
In cases DAPP includes a bridge (or any other multichain functionality) it is annoying for users to sign the message everytime they change the network, maybe better to give the disable option for developers.
Link to minimal reproducible example
https://app.txsync.io/
Summary
When setting up SIWE configuration, we're using the
createSIWEConfig
function from@web3modal/siwe
package.We're passing these options:
where the last option,
signOutOnNetworkChange
which is set tofalse
, doesn't work as expected. Whenever the user switches networks it asks to sign the message again, otherwise, it calls thesignOut
function and logs the user out.I noticed that this file seems to be responsible for calling the
signOut
function:packages/scaffold/src/modal/w3m-modal/index.ts
More specifically, this block:
I didn't see the
signOutOnNetworkChange
parameter being used anywhere - I'm not sure if I missed something.List of related npm package versions
"@web3modal/siwe": "^4.1.9",
(and I tried it on the latest versions as well, still not fixed)"@web3modal/wagmi": "^4.1.9",
@web3modal/scaffold
- the issue is potentially in this packageThe text was updated successfully, but these errors were encountered: