Next.js 14 + @supabase/ssr: authencation, oauth, page protection,CRUD

preview_player
Показать описание


Document:

Support the channel : 🙏🌸

Follow me:   👇

⭐️ Contents ⭐️

00:00 Introduction
01:17 Setup supabase client
03:05 Register
07:31 Page protection
10:35 SignOut
12:40 SignIn
16:08 OAuth with Github
20:43 Midddleware
21:19 CRUD create table
22:07 CRUD setup table policy
24:05 CRUD create
28:18 CRUD read
31:45 CRUD delete update
35:21 Outro
Рекомендации по теме
Комментарии
Автор

if you faced issue, you can checkout my latest playlist on how to connect with supabase.

DailyWebCoding
Автор

Thanks for the tutorial! I was struggling using the Supabase docs but you explained how to do just what I needed.

kgkcStudios
Автор

Thanks for share, It saves me a lot of time.

rockbotico
Автор

I had to go though a lot to find a solution for all the problems I had today, only for you to publish this hours later :(

jotaroisdarius
Автор

Thanks. This video is exactly what I Needed. Please make more Supabase videos

KhalidKhan-xqxp
Автор

You added set cookies in server client but it says at 1:58 on the Supabase website
NOTE
Server Components only have read access to cookies.

Trying to understand, why?

Nurpie
Автор

If you have this "Error: Cookies can only be modified in a Server", you have to remove set and remove methods from the createServerClient funcion.

Dreaming-AI
Автор

thanks for everything, please continue uploading content !

panagiotiskaribalis
Автор

one small suggestion. we don't need to convert the response to sring then again convert it to json. we can do it directly

devDarshilJadav
Автор

great stuff. If you have more protected routes than just /todo, i would move the session-check in the layout though.

logemann
Автор

Thank you for great video. Could you, please, explain, how to use conditional rendering in 'use client' navbar, for example. How to listen in client component for supabase.auth status change?

maxrusakovic
Автор

Thank you for this tutorial, you've saved my day 🙏

maskman
Автор

I get error after 1-2 hours: Error: Cookies can only be modified in a Server Action or Route Handler

ВсемСалам-пш
Автор

Hey man thanks a lot for your tutorial, I really found it super useful! Could you please create a tutorial on how to call superbase server actions or api routes from client components to insert or fetch data from a supabase table? Thanks!!

perepalacin
Автор

who knows why i can't see result from SignIn or SignOut in the client side and can' tdisplay a toast, like in the server post does corectly, but nothing returned to rhe client?

vasyl
Автор

i'm using supa with clerk.. how can i get the token(from clerk) on the server side?

samfights
Автор

Thanks for the tutorial! When i try to get user session my data return null {"session":null}

bipboprobot
Автор

How to get the session and user data on the client side when we authenticate using server side?

SiddharthJha-se
Автор

What's the setting you have used to create space between lines in vscode?

gauravr
Автор

Thank you so much for your dedication!! And I subscribed to your YouTube channel.
I have a question, how do you display an error in the bottom right corner of the browser?

김한울-cr