Hello The Dev Logger, congrats on your channel. Super useful content, high quality of articulation and presentation. I am sure you will grow big, keep going. Looking forward to watch more nextjs content coming from you. Greetings from Turkey.
@@TheDevLogger The only callout that I am realizing now is that the LoginLogoutButton isn't really signing out the user. You are using setting the user state as null. You need to call the signOut method from the supabase client library
How is this youtuber has only 140 subs. Let pump it guys, subscribe to him. This video is succinct and has what we really need for supabase + next auth
nice. the refresh middleware seems like a lot of overhead to every request, not sure if there is a better way, maybe refreshing independent of request/response?
Thanks for AMAZING tutorial. One thing I'd like to know is how to add Sign Up with Google button. Currently in your setup user needs to create a password manually, is there a way to make this work if user signing up with Google directly?
Could you also explain how to use Supabase hosted on your own VPS? Because in this case, I couldn’t find partner authentications like Google in the Supabase dashboard.
No problem! If you’d like to generate types for the Supabase table so you are able to get autocomplete you might want to check out: supabase.com/docs/guides/api/rest/generating-types
Hello! Nice tutorial... does it still work? im new to all this and got few login issues. I actually had the serversided login implemented before, but i THINK that somethign changed with supabase..
Decent thank you, I ran into an issue where sometimes when logging in it would put the users password in the url! 😮 I will take a look at how you’ve done it compared to my setup and see if it addresses the problem.
@@TheDevLoggerthat will be helpful. I can test your flow then slowly add my code into it to identify the root cause. One variation on my end is I’m using email with not the providers. But I doubt it is that. I also used the middle chain pattern. (Can share this with you if you like) but it was broken before that refactor if I remember rightly. Will try to remember to update you. On holiday atm. Will circle back within a month.
Im new to Supabase. So I can just use Supabase as a remote database and Auth service, right? Im thinking of using FastAPI with Docker and using Supabase just for Auth and object storage. Is that a typical architecture?
To my understanding you can use as much or as little of the services supabase provides as you want. You may want to look into using Supabase Edge Functions if you are building APIs, I haven’t used FastAPI before but I would guess that maybe the equivalent? Additionally if you are going to run a docker container anyway, you might as well self-host supabase
40th subscriber 🎉 Could you create a git repo with the code? I've followed the steps but the login button keeps calling the logout function, so I guess I did something wrong.
@@TheDevLogger Thank you! I literally put the code for the logout in the login page, no wonder it was acting that way 😂 Do you have a twitter where we can follow you for updates and new videos?
@@AverageJohnny No problem! hahaha I make those silly mistakes all the time too. Instagram is probably where I'll be doing more frequent updates during the week. I haven't set that up yet but hopefully maybe within the next video or the video after there'll be a link in the description! I have soo many content ideas, it would be super cool to engage with you and everyone here to see what would be most helpful :)
@@TheDevLogger I would definetlly recommend posting on X as well, dev community there is huge. As for a video idea, I think a video on big Stripe alternative payment processors like LemonSqueezy would be very helpful. Most tutorials use Stripe, but since it isn't available everywhere, LemonSqueezy gained a lot of users and no content on youtube.
It works on local but when trying to deploy on Vercel it gets error; Failed to compile. app/auth/confirm/route.ts Type error: File '/vercel/path0/app/auth/confirm/route.ts' is not a module.
who is this guy. He explained everything I needed. Thanks man!
This is best tutorial for Supabase Auth 've ever seen on UA-cam so far !
Hello The Dev Logger, congrats on your channel. Super useful content, high quality of articulation and presentation. I am sure you will grow big, keep going. Looking forward to watch more nextjs content coming from you. Greetings from Turkey.
Thank you so much for your kind words! Really appreciate the support ❤️
You woke up and chose raw efficiency, good job
Great video, straight to the point. Even included code in the description, A+.
Supper helpful!
Dude, you are AMAZING!!
You are the best Sir.🥳🥳🥳
Thank you very much
Great tutorial man really clean
Thank you!!
Awesome video, thanks, applied your examples to my next.js project
Your welcome! Glad it was helpful to you :)
@@TheDevLogger The only callout that I am realizing now is that the LoginLogoutButton isn't really signing out the user. You are using setting the user state as null.
You need to call the signOut method from the supabase client library
Thanks for pointing that out! I guess I missed adding that part to the video
Great tutorial, quick to understand. Thank you!
Glad it helped!
nice
Brilliant work. Thank you Sir!
This is a good video! :)
How is this youtuber has only 140 subs. Let pump it guys, subscribe to him. This video is succinct and has what we really need for supabase + next auth
cool! but how do we protect the routes for not logged in users, do we intercept it in the middleware?
using middleware
thank you, really helpfull and rally good explanation..
Your very welcome :)
nice. the refresh middleware seems like a lot of overhead to every request, not sure if there is a better way, maybe refreshing independent of request/response?
Thanks for AMAZING tutorial. One thing I'd like to know is how to add Sign Up with Google button.
Currently in your setup user needs to create a password manually, is there a way to make this work if user signing up with Google directly?
Could you also explain how to use Supabase hosted on your own VPS? Because in this case, I couldn’t find partner authentications like Google in the Supabase dashboard.
Thanks! but how do we update the name of the app displayed on google login screen to our app name instead of subdomain from supabase?
thank you i loved it so much, but how can i get the types for user because it does not autocomplete in vs code withouts types
No problem! If you’d like to generate types for the Supabase table so you are able to get autocomplete you might want to check out: supabase.com/docs/guides/api/rest/generating-types
How did we get an email without setting up SMTP details?
Gives error with nextjs 15 as supabase.auth is undefined at server
did you find a fix for this?
how can we set different roles for the users while logging in using google
bro, im getting user null when i log in with google.
Great tutorial, do you know the cost of this CPG service? is it free?
is this with nextjs 14.2?
Hello!
Nice tutorial... does it still work? im new to all this and got few login issues.
I actually had the serversided login implemented before, but i THINK that somethign changed with supabase..
Your tutorial is great but no zooming in to see what’s going on to the small text
Hope u add zoom to scale those small text components etc thanks!!!
Thank you for the compliment! Haha yeah I realized that after I’ve edited the video 🤣
Decent thank you, I ran into an issue where sometimes when logging in it would put the users password in the url! 😮 I will take a look at how you’ve done it compared to my setup and see if it addresses the problem.
Ohh… that doesn’t sound right haha 😂 Let me know if you’d like me to create a GitHub repo with the example project and add it to the description
@@TheDevLoggerthat will be helpful. I can test your flow then slowly add my code into it to identify the root cause. One variation on my end is I’m using email with not the providers. But I doubt it is that. I also used the middle chain pattern. (Can share this with you if you like) but it was broken before that refactor if I remember rightly. Will try to remember to update you. On holiday atm. Will circle back within a month.
@@StephenRayner It's in the description! Just let me know if you find any issues with it
Im new to Supabase. So I can just use Supabase as a remote database and Auth service, right? Im thinking of using FastAPI with Docker and using Supabase just for Auth and object storage. Is that a typical architecture?
To my understanding you can use as much or as little of the services supabase provides as you want. You may want to look into using Supabase Edge Functions if you are building APIs, I haven’t used FastAPI before but I would guess that maybe the equivalent? Additionally if you are going to run a docker container anyway, you might as well self-host supabase
40th subscriber 🎉 Could you create a git repo with the code? I've followed the steps but the login button keeps calling the logout function, so I guess I did something wrong.
haha thank you for the support! I've added the repo to the description. Let me know if it still doesn't work for you.
@@TheDevLogger Thank you! I literally put the code for the logout in the login page, no wonder it was acting that way 😂 Do you have a twitter where we can follow you for updates and new videos?
@@AverageJohnny No problem! hahaha I make those silly mistakes all the time too. Instagram is probably where I'll be doing more frequent updates during the week. I haven't set that up yet but hopefully maybe within the next video or the video after there'll be a link in the description! I have soo many content ideas, it would be super cool to engage with you and everyone here to see what would be most helpful :)
@@TheDevLogger I would definetlly recommend posting on X as well, dev community there is huge. As for a video idea, I think a video on big Stripe alternative payment processors like LemonSqueezy would be very helpful. Most tutorials use Stripe, but since it isn't available everywhere, LemonSqueezy gained a lot of users and no content on youtube.
That thumbnail... 😂😂😂😂
this is soooo complicated, unbelievable.. why??? fml
🫠🔥🔥
It works on local but when trying to deploy on Vercel it gets error;
Failed to compile.
app/auth/confirm/route.ts
Type error: File '/vercel/path0/app/auth/confirm/route.ts' is not a module.