Skip to content

Commit

Permalink
Update siwe.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
wtfsayo committed May 25, 2024
1 parent 8a33004 commit 103fa0b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions web-portal/frontend/utils/siwe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { SiweMessage } from "siwe";
import Cookies from "js-cookie";
import { createSIWEConfig } from "@web3modal/siwe";
import { queryClient, config } from "./Web3Provider";
import { disconnect } from "@wagmi/core";
import { Config, disconnect } from "@wagmi/core";

export const getNonce = async () => {
const res = await fetch("/api/siwe", { method: "PUT" });
Expand Down Expand Up @@ -56,7 +56,7 @@ export const getSession = async () => {
};

export const signOut = async () => {
const result = await disconnect(config);
const result = await disconnect(config as any);
Cookies.set("session", "");
queryClient.setQueryData(["session"], null);
console.log({ session: Cookies.get("session"), result });
Expand Down

0 comments on commit 103fa0b

Please sign in to comment.