Understand the Supabase SSR Package easily

preview_player
Показать описание
Sure, you can read the docs - but aren't you confused about it? Get a full-fledged, detailed explanation which removes all future barriers.

About the info Box in the video:
I use the same Client for Server Components, Route Handlers and Server Actions with NextJS App Router without the differentiating in set/remove;
Because: I want to make sure that Server Components are not misused and hence if Supabase tries to set a cookie in a Server Component I want an error to be thrown instead of covering it up ✌️

00:00 Intro
01:13 Getting to know the new package
02:22 createBrowserClient
04:38 createServerClient framework-independent Explanation
07:56 createServerClient for AppRouter Backends
11:12 createServerClient for AppRouter middleware and PagesRouter Backend
Рекомендации по теме
Комментарии
Автор

when the video starts with "It's not you. The problem isn't you.", you know you're in the right place

ArnasStasiulis
Автор

there was no other tutorial so clear and to the point about the supabase/ssr lib (definitely including the own docs lol), thanks a lot

flavioneto
Автор

Thanks, most tutorials are outdated, you filled in the gap between the transition form the auth lib to ssr.

karankhaira
Автор

Finally a super clear and helpful tutorial about this! It's better than the docs.

Thanks for sharing 🙌

taviiiz
Автор

cant express how helpful this was, thank you very much!

kurwacherry
Автор

Thanks for this one, was confused with the doc and was not that happy to migrate again :) Now that's easy :)

francois-pierrethibault
Автор

So perfect! Now I need one for Angular

raedmiranda
Автор

Thank you so much for this! It was needed since the auth has changed so many times

MorganHvidt
Автор

Thanks a lot. I am already using the ssr package but didn‘t know if i am right with my implementation. Now it‘s much more clear for me.
Thanks a lot! :-)

ThomasWilke
Автор

You're a lifesaver! I am just starting out with Supabase and Next and you were the only one who could make me understand. Does authentication happen the way it was done before?

SmartSleeper
Автор

Great explanation your tutorials are really EPIC, I love your style in explain concepts, keep going please <3

xiiEJRAM
Автор

thanks, this helped a lot. I would love a video on how to use these different functions in the app like getting user session etc

usman
Автор

Great video, keep it up. You just earned yourself a sub :D

JuicyBenji
Автор

This is great! Thank you! Quick question: When do we want to use the server client / not the component one? For instance, assume you have a fetchUserData function that takes in an id. While loading a server side page, we should use server component client. When exactly the server client comes in picture? Only the server actions and route handlers?

tech_interviewer
Автор

"If you're not using middleware with app router, then you're dumb" I died haha

lawrencegood
Автор

Should I use supabase/ssr just for Auth related stuff? Clients created by that use cookies so it opts out of caching for every request.
What If I want to fetch todos and cache them? Should I use normal "supabase-js" ?

dziaddy
Автор

Great explanation. Supabase documentation for Nextjs keeps getting confusing

AnindoSarker
Автор

Could not understand how to access serverClient in getServerSideProps, can you share an example ?

fulltimefrontend
Автор

Great video! What theme are you using and font in VS Code? Happy Holidays! 🎄

vlad_pantyukhin
Автор

what's your vscode theme? I like it.

haitech
join shbcf.ru