Replies: 2 comments 1 reply
-
It seems like it was an issue with Supabase not propagating the redirect URL and not with my routing configs. This is resolved now! |
Beta Was this translation helpful? Give feedback.
1 reply
-
for someone who struggling to setup authentication in tanstack router with supabase -> https://medium.com/@your-ehsan/how-to-setup-the-supabase-authentication-with-tanstack-router-in-vite-react-c0b7d5104576 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have a Vite React app which has an AuthProvider context set up to validate authorization. It exposes a
useAuth
hook which I use for this. I am following the doc to set up authenticated routes using React context, my set up is as follows:routes/__root.tsx
routes/dashboard.tsx
main.tsx
However, when I log in with my user, I am navigated to the index "/" route and not the "/dashboard" route. How do I ensure that if the user enters the "/dashboard" route while not logged in, logs in, and is routed to the "/dashboard" route after login?
I am using Supabase with Google OAuth if that helps.
Beta Was this translation helpful? Give feedback.
All reactions