Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Metamask wallet reject on refresh of page using Rainbow connector #24267

Closed
ayabelarbi opened this issue Apr 27, 2024 · 1 comment
Closed
Labels
external-contributor Sev2-normal Normal severity; minor loss of service or inconvenience. team-wallet-api-platform type-bug

Comments

@ayabelarbi
Copy link

Describe the bug

why, when my Dapp is refreshing for some metamask wallet, the wallet is disconnecting ?

Not for every wallet, just some wallet connecting to metamask through RainbowKit.

"@rainbow-me/rainbowkit": "^1.3.2"

Expected behavior

I am expecting, on refresh, to still have the wallet connected. The state connect is not working well, as it's disconnecting for some wallet while it's should be the case.

const { connectors } = getDefaultWallets({
appName: "My RainbowKit App",
projectId: " ",
chains,
});

const wagmiConfig = createConfig({
autoConnect: true,
connectors,
publicClient,
});

AutoConnect, is set to true, so on refresh of the page, it should stay connected.

Screenshots/Recordings

No response

Steps to reproduce

  1. Connect wallet trought rainbow wallet
  2. Refresh the page
  3. Disconnection happen

Error messages or log output

No response

Version

Throught @rainbow-me/rainbowkit": "^1.3.2"

Build type

None

Browser

Chrome, Firefox

Operating system

Windows, MacOS

Hardware wallet

No response

Additional context

No response

Severity

No response

@gauthierpetetin gauthierpetetin added Sev2-normal Normal severity; minor loss of service or inconvenience. team-wallet-api-platform labels Apr 29, 2024
@vandan
Copy link

vandan commented May 3, 2024

For issues like this, we recommend moving to RainbowKit v2.x for improved EIP-6963 support:
https://www.rainbowkit.com/docs/migration-guide

@vandan vandan closed this as completed May 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
external-contributor Sev2-normal Normal severity; minor loss of service or inconvenience. team-wallet-api-platform type-bug
Projects
Archived in project
Status: Fixed
Development

No branches or pull requests

4 participants