From b2831729f9a70752cfa2c0306d1b77cb7c2d6d46 Mon Sep 17 00:00:00 2001 From: rharkor Date: Sat, 18 Nov 2023 18:14:02 +0100 Subject: [PATCH] fix: delete session on signOut --- src/components/auth/sign-out-button.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/auth/sign-out-button.tsx b/src/components/auth/sign-out-button.tsx index 7cb03457..6db99095 100644 --- a/src/components/auth/sign-out-button.tsx +++ b/src/components/auth/sign-out-button.tsx @@ -36,7 +36,7 @@ export default function SignoutButton({ //? Before signing out, we want to delete the session from the server if (currentSession) await deleteSessionMutation.mutateAsync({ - sessionToken: currentSession, + id: currentSession, }) } catch (e) { logger.error(e)