Skip to content

Commit

Permalink
fix: delete session on signOut
Browse files Browse the repository at this point in the history
  • Loading branch information
rharkor committed Nov 18, 2023
1 parent 6756586 commit b283172
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/auth/sign-out-button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit b283172

Please sign in to comment.