Replies: 2 comments 5 replies
-
This my repo iammarkps/register.triamudom.club |
Beta Was this translation helpful? Give feedback.
0 replies
-
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I use https://swr.vercel.app/examples/auth example from swr official documentation. On that page it seem fine, when I change path to
/
it redirect immediately to dashboard without even showing a moment of login page. But when I used it on my project, it show index page for a moment. How to fix this?This is my
useUser()
hooks.I cannot use loggedOut the same way in the example because fetch won't return error even with my API returning 401 HTTP response. Instead it return the data as text.
Any idea how to fix this?
Beta Was this translation helpful? Give feedback.
All reactions