It's VERY difficult to find any working example of next-auth with custom login page and the use of credential rather than a 3rd party identity provider. Very good tutorial! The chapters are absolutely amazing, I could easily find exactly the part of your video that explained the part of the implementation that I was struggling with. Thank you very much sir
The only DETAILS tutorial for next-auth and its UI form example. I've been through so many videos and your video has helped me through to understand my doubts! Much thanks!
Fascinating tutorial! I'm usually very skeptical of RU-vid tutorials, but this one was just perfect! Watched it in one day. Thank you for this, my friend.
I LOVE YOU SO MUCH. I SEARCHED MANY VIDEOS FINALLY FIND WHAT I WAS LOOKING FOR I NEEDED THIS WHILE DEVELOPING MY APPLICATION AND IT IS NOW IT'S HAPPEN THANKS
The best tutorial nextauth credentials. Can you show us how to use nextauth credentials with external api, where the external api is return jwt token. And nextjs13 maybe interested 🙏
A beautiful course, clear and on point, I'd give it six stars if it is in typescript. Anyway, I learned a lot and enjoyed it from start to finish. Thank you very much.
Sir I have a dought we can easily sign in with Google and GitHub even if the user is not registerd in the database how can we authenticate user before sign in with next-auth ?
Can you make an entended version for this tutorial in a 5-10 minute video for people using NextJS 13.4 on what we need to change from this tutorial ? Thanks!
Thank you for this helpful tutorial. But can i ask you a question? So we don't have control over the Model with next google login? It creates an account and an user Model in the background? Or can we personalize this user Document for our needs?
Awesome simply !I have a question, you have implemented GitHub and google with your client I’d and password, how will that work for others ? If I deploy ….will it accept other gmail and git credentials ?
Great tutorial, you explain everything so well. I just have one problem. When I use credentials to signin "session" is always null, it never seems to pick up data. Everything else is perfectly fuctional. Can you help me please?
I want to plzzzz ask u a question. How can I use NextAuth with Google to authenticate the user and then pass the session to NestJS project to authenticate the user there also so I can use the guards features in NesfJS. There are not guides or tutorials about this at all
thanks for great guide which can help us learning this topic. just one thing to ask, you are using Mongo DB what about a SQL based RDBMS like MySQL database? is there an easy way to use this same app with MySQL like just changes in config files? please help a newbie. regards
hello , am trying to make a simple project to login and register just like you did , i want to ask about the responses from the signup api . if i wanted to pop a modal saying username already exists or how can i catch the api response status and then pop a modal... thank you by the way this was so helpfull i hope u read my comment soon
I keep getting this error at 2:07:10 when we are testing with post man API resolved without sending a response for /api/auth/signup, this may result in stalled requests. error - unhandledRejection: Error [MongooseError]: Model.create() no longer accepts a callback pleasee can anyone help?
new mongoose docs said that u cannot use callbacks in Model.create({ }, callbacks), so meaning you have to use Model.create({}).then().catch() use below instead to fix your error :) Users.create({ username, email, password : await hash(password, 12) }).then(data => { res.status(201).json({status: true, user: data}) }).catch(err => { return res.status(404).json({ err }) })
2:25:18 In profile page, I want to show users image, name, gender, status, and many more information. In that case, how can I get these information from the database? in session, I only get email and name
Hi if I want to use google provider, how do I link a new user for additional sign up information. We do not add in a user until they complete the register page but using google provider. Atm next-auth will automatically add in that user
I think a res.send(response) is missing in the Sign Up chapter. In the video at 2:07:20 Postman returns the object, but without the res.send() I get this error: "API resolved without sending a response for /api/auth/signup, this may result in stalled requests"
That's because you are not returning it directly since you still have to do the db query and process it. If you want this error to disappear, you have to return a promise and then resolve it later on when you are done processing the information.
@@johndeer8405 No, it's not. I had the same issue so I looked it up and Next.js wants a return value. It will work fine even with that warning however if you want it resolved, return a prmoise and handle the API code in there.
The user values are saved in the db when signing in via credentials but when signing via google or github, none of the user properties are saved in the db. How would you save the user properties when signing in using other providers?
Hi Daily Tuition, I have been watching your Video Series of NextAuth Login with MongoDB. But I have faced an weird Problem hopefully you could help me (if possible). When I am trying to Login, Formik won't get the Values and won't execute the Function for Credentials Login. And when I am using the Function directly inside the Button it will give me a 401 and says that there are now Users with that Email.... Hopefully you can help me. Nevertheless it is a great Video Series !!!
Is it just me or are you zoomed in on your browser? because i coded along from the beginning and even cloned your finished project and the pages only look right when I'm zoomed out to 80% on my browser? Is this the same for others too?
Hi, I have a problem I am running into. So, when I check with Postman to make sure everything is running smoothly. I get the "Don't have form data". When I then add the body JSON; I don't get the object back, instead I get Connection failed. Can you please help with what maybe the problem will be. Thanks
Very Awesome Tutorial , I have implemented it via fast APi as backend & next js as frontend ... Please make a video on middleware.js file as well indepth.. Thanks a lot Bro