Kurooo
Kurooo8mo ago

Force user to login

How can I redirect the user to "/login" if the user are not logged in?
No description
2 Replies
BeBoRE
BeBoRE8mo ago
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.
Kurooo
Kurooo8mo ago
im using t3 stack so i guess im using react-query