Skip to content

dengpeng/wagmi-bug

Repository files navigation

Demo for a Wagmi Disconnected Cookie Bug

Description

This repository demostrates the following bug in the Wagmi library:

When calling disconnect, wagmi would normally store a session cookie like wagmi.io.metamask.disconnected so the page stays disconnected after a refresh (Since wallet like metamask doesn't provide way to do a real disconnect).

However, this cookie should be cleared/removed if the user connects again. This removal of the "disconnected" cookie currently only works when the the "connect" call is maded on the root / and first level pages (e.g. /foo) but NOT on pages that are deeper (e.g. /bar/qux or /a/b/c).

Library Versions:

  • @wagmi/core: "2.11.5"
  • wagmi: "2.10.8"

About

Demo for a Wagmi Disconnected Cookie Bug

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published