diff --git a/.changeset/spotty-jobs-enjoy.md b/.changeset/spotty-jobs-enjoy.md new file mode 100644 index 0000000..2d34f19 --- /dev/null +++ b/.changeset/spotty-jobs-enjoy.md @@ -0,0 +1,5 @@ +--- +"@everipedia/iq-login": patch +--- + +adds storage cookie storage diff --git a/src/components/iq-login-provider.tsx b/src/components/iq-login-provider.tsx index 087561b..83012e4 100644 --- a/src/components/iq-login-provider.tsx +++ b/src/components/iq-login-provider.tsx @@ -2,7 +2,12 @@ import { getDefaultConfig, RainbowKitProvider } from "@rainbow-me/rainbowkit"; import { QueryClient, QueryClientProvider } from "@tanstack/react-query"; import { structuralSharing } from "@wagmi/core/query"; import type React from "react"; -import { cookieToInitialState, WagmiProvider } from "wagmi"; +import { + cookieStorage, + cookieToInitialState, + createStorage, + WagmiProvider, +} from "wagmi"; import type { Chain } from "wagmi/chains"; import { iqWikiTheme } from "../lib/data/rainbow-kit-theme"; import { @@ -57,6 +62,9 @@ export function IqLoginProvider({ }, ], multiInjectedProviderDiscovery: false, + storage: createStorage({ + storage: cookieStorage, + }), ssr: true, });