Aerys
How Do I Ban Users & Invalidate Their JWT Tokens?
When a malicious user gets banned by an admin, I have to ensure he no longer can access protected routes, but that means I have to query the database every time checking a user's token, is there a more efficient method for invalidating tokens?
4 replies
Why useQuery() tries to refetch when error occurs while useMutation() doesn't?
I'm using the T3 stack.
(it should return a Zod validation error)
the client tries to refetch 3 times and then returns the error (4-5 seconds of delay), throughout the process the error is logged by the
loggerLink
, but the error
returned takes a while, but when I switch to useMutation()
the error is returned rather instantly, what could be root?5 replies