-
Beta Was this translation helpful? Give feedback.
Answered by
sergiodxa
Sep 20, 2022
Replies: 1 comment
-
Since you're using useQuery I suppose you're trying to do this client-side, and destroySession can't be used client-side, it's a server-side only thing. What you could do is to send a POST to some resource route and call destroy session there. BTW, this is not related to Remix Auth. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
MatD1
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Since you're using useQuery I suppose you're trying to do this client-side, and destroySession can't be used client-side, it's a server-side only thing.
What you could do is to send a POST to some resource route and call destroy session there.
BTW, this is not related to Remix Auth.