Thank you, after two days of trying to figure out the credentials provider using the docs and other videos, I finally got it to work with your video. Subscribed.
Registration process you can keep separate in most cases as I have shown in the video. With credential provider you can do additional prechecks of auth before you register user.
Sir, Very helpful video. But I have a very serious doubt In V4 we used to return null; now in V5 returning null or retuning a custom error; gives a callbackRouteError; why it that. Sir I request please clarify this
Great question, I explored the same recently. V5 has not implemented the same. There are already ongoing discussions I found on their github isssues. The best solution I found so far is to catch the exception in your action and check the type of it. Based on the type, you can rethrow the exception and relevant messages from the action. V5 is still in beta so we have to see if there are further updates on this regard. If you also find anything in future, let us know. Lets learn together 🙌
@@tapasadhikary can't wait for the mongodb integration to store user data in a real database and persist the data instead of using a static file. really excited for that one, and i'm sure that one will be as excellent as well. your videos really help clarify the ideas and make them stupidly simple. much appreciated for the videos sir
Thanks! I would suggest you to look into the videos from this playlist from the beginning. Let me know if you find anything missing, would love to add 👍
Thanks for making this video for us.. I am requesting to you if possible make a one video about route protection in next js. Like public route ,private route, restricted route. How we protect our route properly? Thanks again ❤
Awesome video and very helpful. Sir, I have a request for you. I need a video on adding callback and multiple middleware to include additional custom fields in the JWT. Include extra fields for the user's role and name upon social media login. We eagerly await these updates.
How can i receive custom message thrown using throw new Error ( ) method , and how can i display the correct error like password not correct or something else
If you are having a server action, you can always catch them by checking the Error type and rethrow it from the catch block with a suitable error message. Then in your form or invocation point, you can catch the error again and show it on the client side.
@@tapasadhikary btw, thank you so much for these videos. Last week, I tried to create a small project using NextJS and Auth.js. I stopped it and switched to plain React.js and custom authentication. But just today I was able to make the 3 logins (Google, GitHub & credentials) work. I wished I saw your videos earlier. It motivates me to learn NextJs more. Keep it up!
If you are having a server action, you can always catch them by checking the Error type and rethrow it from the catch block with a suitable error message. Then in your form or invocation point, you can catch the error again and show it on the client side.
Have a backend that issues a refresh token and then use the callback handle to manage it. I will show it to Google in an upcoming video and provide guidance on how to do it with credentials following the same. Stay tuned.
Thank you, after two days of trying to figure out the credentials provider using the docs and other videos, I finally got it to work with your video. Subscribed.
❤️❤️🙏
This video deserves more than 1 million views. Thank you so much!!
Glad it helped.. Thanks a lot. Yo! let's make it happen.. let's go to millions 🚀
Thank you for the tutorial. The way you explain is so helpful and easy to understand.
You're very welcome!
You made it so easy to understand ! Love from Bangladesh 🇧🇩 ❤
@@Rasel720 thanks vai ❤️
Just in time! cant wait for the MongoDB integration tutorials.
I am very glad.
how to do signup using credential provider. like i want username, email, and password
Registration process you can keep separate in most cases as I have shown in the video. With credential provider you can do additional prechecks of auth before you register user.
Just replace the email with username
Best video on youtube for nextAuth
That's so good to hear 😊
The process was so smooth.
Thanks man!
Sir, Very helpful video. But I have a very serious doubt
In V4 we used to return null;
now in V5 returning null or retuning a custom error; gives a callbackRouteError; why it that.
Sir I request please clarify this
Great question, I explored the same recently.
V5 has not implemented the same. There are already ongoing discussions I found on their github isssues. The best solution I found so far is to catch the exception in your action and check the type of it. Based on the type, you can rethrow the exception and relevant messages from the action.
V5 is still in beta so we have to see if there are further updates on this regard. If you also find anything in future, let us know. Lets learn together 🙌
@@tapasadhikary ok thank you sir, i was trying to catch errors thats how I came across your video.
excellent video, many thanks for taking the time to make this video and make it so excellently
You're very welcome!
@@tapasadhikary can't wait for the mongodb integration to store user data in a real database and persist the data instead of using a static file. really excited for that one, and i'm sure that one will be as excellent as well. your videos really help clarify the ideas and make them stupidly simple. much appreciated for the videos sir
@@tawsifhaque9360 thanks, man! Make sure you go through my earlier video of persisting data in mongo. It's in the same series.
Nice One :), I would like if you can do basic things also. like step by step guide about NextJs
Thanks! I would suggest you to look into the videos from this playlist from the beginning. Let me know if you find anything missing, would love to add 👍
Thanks for making this video for us..
I am requesting to you if possible make a one video about route protection in next js. Like public route ,private route, restricted route.
How we protect our route properly?
Thanks again ❤
Yeah… with middleware and a few more ways we can do. Shall make it. Thanks!
@@tapasadhikary Thank you so much! I'm really excited and looking forward to it! ❤️
Will be waiting for the next video Dada ❤
❤️❤️
Awesome video and very helpful. Sir, I have a request for you. I need a video on adding callback and multiple middleware to include additional custom fields in the JWT. Include extra fields for the user's role and name upon social media login. We eagerly await these updates.
Absolutly amazing.
How can i receive custom message thrown using throw new Error ( ) method , and how can i display the correct error like password not correct or something else
If you are having a server action, you can always catch them by checking the Error type and rethrow it from the catch block with a suitable error message. Then in your form or invocation point, you can catch the error again and show it on the client side.
What is that plugin that auto-previews the things to be typed in? Also, what is the editor thene?
For console log or intellisense?
@@tapasadhikary intellisense. Ex. while typing in formData variable, it previews the properties email and password.
@@tapasadhikary btw, thank you so much for these videos. Last week, I tried to create a small project using NextJS and Auth.js. I stopped it and switched to plain React.js and custom authentication. But just today I was able to make the 3 logins (Google, GitHub & credentials) work. I wished I saw your videos earlier. It motivates me to learn NextJs more. Keep it up!
@@tapasadhikary console
That’s tabnine extension
I want those custom error messages from the authorise function inside auth.js to be rendered in the login client components page
If you are having a server action, you can always catch them by checking the Error type and rethrow it from the catch block with a suitable error message. Then in your form or invocation point, you can catch the error again and show it on the client side.
Really helful!! thanks. I subscribed and clicked like!
Great, and thanks a ton for your support.
nextjs a scrapper lib use kora jabe ?
like puppeteer,
use kora gele o effective hobe naki ?
Definitely you can. Yes it will be useful.. you can create ticket booking apps.
Thank you sir ❤
Most welcome
Truly your content is good
I am so glad, man! Thank you.
in next-auth v5 is there a way to return custom error messages in the authorize function
Help!
yes you can but in the action u need to again catch by the error type and rethrow. i explained it one of the comment.
@@tapasadhikary I go through the comments. But I wasn't able to find it. can you please, comment the link to that answer
oo thank you for teaching next auth
I am glad when each of my channel subscribers learns.. thank you a lot.
How can we handle refresh and acces token using credential login?
Have a backend that issues a refresh token and then use the callback handle to manage it. I will show it to Google in an upcoming video and provide guidance on how to do it with credentials following the same. Stay tuned.
Nice ❤❤❤❤
Thank you ❤️
wow
✨❤