"New" Supabase auth ssr package
CharlBest opened this issue · 5 comments
Amazing project! Exactly what I was looking for.
Curious what are your thoughts on the @supabase/ssr
package rather than using auth-helpers
?
It seems going forward that it is the package that will get the updates and be maintained. That said, I'm not sure if there are differences now so wouldn't have an influence at this stage, right?
Saw a YouTuber do the migration, if you are interested.
I looked at this, but honestly I can't remember why I didn't migrate. I'd want to keep the CSR option because svelte does such a good job of it. Would be curious if SSR can run in CSR for sveltekit.
P2 nice to have. No bug per se, but keeping up with times always good.
We've had issues with auth-helpers: 9211be0
I think it'd be good to migrate, as Supabase seems to be phasing out the auth-helpers stuff pretty aggressively and providing less support and attention there. Maybe something to add to your todo list from your other issue @CharlBest? :)
@scosman @owenversteeg
I saw this repo using the SSR package. Looks like it can be a good starting point.
https://github.com/psegarel/supabase_auth-sveltekit4
Side note: I also like how they encapsulate the SVG icons to declutter main components
I just migrated in my fork but I still get some supabase warnings about using user
object from the unsafe getSession()
which I cannot pin-point where they are occurring exactly.