Skip to content

Using the destroySession function, when token validation fails #194

Answered by sergiodxa
MatD1 asked this question in Q&A
Discussion options

You must be logged in to vote

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.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by MatD1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants