Setup Supabase Auth with React Router 7 #13523
Unanswered
angelod1as
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I don't even know where to start from.
I'm moving a NextJS app to React Router 7 and I'm blocked at authentication — especifically, Supabase Auth.
I've read this but I'm looking for a server-side alternative, like something shown here.
The issue is: even though Supabase has some docs on building it with Remix, I can't make it work with RR7.
I've tried using the NextJS config but had no success — RR7 doesn't do Middlewares yet.
I've even tried to build it using auth-helpers-remix and then migrate, but zero success.
I've read a few repos: this, this, this, this, even this one (kinda confusing btw).
Is doing an AuthContext like in here the only solution?
Why does this doesn't write any cookies apparently (because when navigating, it reads zero cookies):
Well, that's all. I'm confused and spent my whole day doing this — and as I'm doing it alone I don't have anyone to ask for help. Maybe you all can at least point in the right direction.
Here's the very WIP repo.
Beta Was this translation helpful? Give feedback.
All reactions