How do the supabase server and browser clients synchronize their sessions ? A login always happens on the browser client. The docs mentioned something about you having to set the cookie manually. Did you do this or is it not necessary ?
Thank you for making this, I recently implemented it and wasn't 100% sure I did it correctly. You are definitely right that their documentation has room for improvement. I think it's hard as Developers to write good documentation because you know the product intimately and sometimes there is a tendency to maybe make assumptions that the user knows things that in reality they might not.
For sure, I think the thing they are missing is showing more examples in context, like prisma does a really good job of just showing me how I would use it in a bunch of different scenerios, in context
Could you share your code? I agree the Supabase doc is a mess - currently it seems like a mix of old auth helper and new SSR approach, which is confusing on a next level...
Love the video and your content! One suggestion/request I would have is that having the terminal open in your IDE can be distracting and provide less space when showing code. In future videos, you might consider closing the console so that we can see more of the code.
UPDATE: this should have been there from the beginning, here is the source code: github.com/bmdavis419/supabase-ssr-showcase
supabase docs are just a sad sad excuse of over 200 million usd of fundings. what a let down
Please make that documentation feedback video! I totally agree and hopefully videos like that will help move the needle
How do the supabase server and browser clients synchronize their sessions ? A login always happens on the browser client. The docs mentioned something about you having to set the cookie manually. Did you do this or is it not necessary ?
This is what you do when you redirect and exchange the code for a session
"some frameworks like to be cute and implement their own fetch" 👀👀👀
Thank you for making this, I recently implemented it and wasn't 100% sure I did it correctly. You are definitely right that their documentation has room for improvement. I think it's hard as Developers to write good documentation because you know the product intimately and sometimes there is a tendency to maybe make assumptions that the user knows things that in reality they might not.
For sure, I think the thing they are missing is showing more examples in context, like prisma does a really good job of just showing me how I would use it in a bunch of different scenerios, in context
Could you share your code?
I agree the Supabase doc is a mess - currently it seems like a mix of old auth helper and new SSR approach, which is confusing on a next level...
This is a very good video Ben !
Can you please share a link to that code? It would really help beginners to debug their mistakes 🙏 Thank you!
Yes! github.com/bmdavis419/supabase-ssr-showcase
Thank you!@@bmdavis419
I AGREE. SUPABASE IS AWESOME BUT THEIR DOCS SUCK 😂
Just what I was looking for. Please link this repo
Love the video and your content! One suggestion/request I would have is that having the terminal open in your IDE can be distracting and provide less space when showing code. In future videos, you might consider closing the console so that we can see more of the code.
Yea I need to make this change in my workflow in general
This looks very similar to Lucia's patterns. Cool stuff.
Yup, its getting a lot better
How you liking Svelte 5 think i saw some of the new syntax in this vid ?
Loving it, I want it asap, but sadly I think we have to wait until april :(
Nice work
could you please zoom in tho
Yea thats my bad, in the videos I'm recording now I've dismissed the terminal and made the text bigger
hey how do i get oauth work with this?
What if I don't care about SSR
Use just the supabase browser client then
Not with that slow postgres on supabase... I still use pocketbase.
docs shmocs. Supabase AI is all you need
ive found it works pretty well, but is not quite perfect