t
tRPC
K
tRPC
•
2y ago
Kurooo
Force user to login
How can I redirect the user to
"
/login
" if the user are not logged in
?
tRPC
Join
Move Fast & Break Nothing. End-to-end typesafe APIs made easy.
5,111
Members
View on Discord
Was this page helpful?
Yes
No
B
BeBoRE
•
12/20/23, 9:06 AM
If you are using React Query you can do this with a global callback
, if you are using the vanilla client you can take a look if you can change the behavior on errors by changing the http linker
.
B
BeBoRE
If you are using React Query you can do this with a global callback, if you are ...
K
Kurooo
OP
•
12/20/23, 9:11 AM
im using t3 stack so i guess im using react
-query