Тёмный

Complete UPDATED Guide - Next.js Auth With Supabase 

Code Ryan
Подписаться 10 тыс.
Просмотров 10 тыс.
50% 1

In this video, I cover a new, updated guide for implementing authentication using Next.js and Supabase.
Final Code: github.com/coderyansolomon/up...
Supabase Docs: supabase.com/docs/guides/auth...

Опубликовано:

 

17 апр 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 39   
@jackkraus6948
@jackkraus6948 Месяц назад
I've been struggling with this all day, what a lifesaver. Thank you!
@coderyan
@coderyan Месяц назад
Happy it helped!
@michele8491
@michele8491 2 месяца назад
Great video. I hope to see more supabase content in the future
@anibalasprilla85
@anibalasprilla85 2 месяца назад
Muchas gracias amigo... de verdad super útil este video... sigue ilustrándonos en Supabase y Next
@nmdpa3
@nmdpa3 2 месяца назад
This approach really works well. Thanks.
@kaneda1204
@kaneda1204 Месяц назад
Hi Ryan, I love your videos! Very neat and easy to understand. Please, do more typescript. Saludos!
@Petyr25
@Petyr25 9 дней назад
This video is crazy good. Love the effort.
@coderyan
@coderyan 9 дней назад
Thank you. Really appreciate it
@dan.stacy1
@dan.stacy1 2 месяца назад
Great video! Thank you!
@ahmedmusawir
@ahmedmusawir 19 дней назад
THANK YOU THANK YOU THANK YOU ... All my other tutorials are now obsolete ... geeeze
@coderyan
@coderyan 19 дней назад
Happy it helped!
@TacoWarriorX
@TacoWarriorX Месяц назад
This guide was helped me understand SSR really well. i was able to transition to SSR now
@coderyan
@coderyan Месяц назад
Happy it helped!
@nicomasset
@nicomasset 2 месяца назад
thanks for the video !
@firecool2
@firecool2 2 месяца назад
Thank you Ryan
@cornelius-IndieHacker
@cornelius-IndieHacker 2 месяца назад
thanks you, ! Great video
@DrMorax
@DrMorax 2 месяца назад
why isn't there error handling in the login page? The user should know when a user is registered or the credentials are wrong
@niademiogundana24
@niademiogundana24 Месяц назад
Hey. Thank you so much for this video. How can I add oauth providers to the page (sign in with google, sign in with microsoft, all that fun stuff)? I used to use nextauth, do I still use that??
@Monstermash355
@Monstermash355 18 дней назад
How to send success/error toast from server actions? Do we need to return something from them and call the toast in the client component?
@ewliang
@ewliang 6 дней назад
I unintentionally trolled myself by making the raw_user_meta_data too big resulting in a split up cookie returned to me. I didn't realize what was going on until later on. Had to update my utils/supabase files to handle this edge case. 😅
@lupleg
@lupleg 2 месяца назад
I have some errors when I click on confirmation email link it's redirect me to a page which is not found.
@lupleg
@lupleg 2 месяца назад
Hopefully this help me I had challenge on how to setup the auth.
@musa6173
@musa6173 Месяц назад
thank you, mr. keanu reeves!!
@coderyan
@coderyan Месяц назад
Haha you’re welcome
@conanastasiou2568
@conanastasiou2568 2 месяца назад
Can I use this along with Prisma?
@kelvins.kumordzi3203
@kelvins.kumordzi3203 День назад
i followed evrything exactly as it is, it worked on the first sign up but after trying again it says error. The redirects also do not work help!!
@boyo_23
@boyo_23 2 месяца назад
Is it possible to protect a route through middleware? Where the middleware handles both refreshing sessions and protecting routes.
@nmdpa3
@nmdpa3 2 месяца назад
Was wondering this myself...but the supabase doc gives me the impression we should "not" rely on middleware for authentication, and instead use supabase.auth.getUser in pages, components, etc. So what I did, following this, was to create a (protected) folder, put all my protected app routes in it, then put the call to supabase.auth.getUser in a layout.tsx file inside the (protected) folder. Worked like a champ and only had to be coded in 1 place. The call to getUser is checking for a session on the supabase server, and avoids using getSession, which checks cookies, as noted by supabase doc.
@cslearn3044
@cslearn3044 2 месяца назад
Don't need this, just came to like as you deserve it
@coderyan
@coderyan 2 месяца назад
Thank you, I appreciate that
@kelvins.kumordzi3203
@kelvins.kumordzi3203 День назад
i followed evrything exactly as it is, it worked on the first sign up but after trying again it says error. help!!
@coderyan
@coderyan День назад
What does the error message say?
@kelvins.kumordzi3203
@kelvins.kumordzi3203 День назад
@@coderyan the error message says Uncaught (in promise) Error: Called encrypt() without a session key at SecretSession.encrypt (background.js:1:12029) at SecretSession.createSMSG (background.js:1:5665) at GetLoginNames4URL (background.js:1:36719) at background.js:1:39849
@SizzleReel-wd4hq
@SizzleReel-wd4hq 2 месяца назад
Definitely use TypeScript going forward. Good practice and makes for better code, it's also redundant to copy the .ts file and then delete it?
@xbozo.
@xbozo. 2 месяца назад
that theme hurts my eyyes
@teetanrobotics5363
@teetanrobotics5363 2 месяца назад
yeah default vs code theme is awesome
@jaradaty88
@jaradaty88 6 дней назад
Thanks for the video, but supabase!!! Whaaat is this, using nextjs auth is easier now...we use supabase to make the auth process ez not to complecate it!
Далее
Avoid This Common Rookie Mistake In Next.js
7:06
Просмотров 2,7 тыс.
Цены на iPhone и Жигули в ЕГИПТЕ!
50:12
Understand the Supabase SSR Package easily
13:55
Просмотров 11 тыс.
State Managers Are Making Your Code Worse In React
13:33