I already did several courses for NestJS already and developed some projects with it. Today I accidentally clicked into your video and found out your video is one of the most clear and easy-to-understand courses I have ever seen. Thanks
Super helpful! Together with your public Github repo, this series of videos constitute a perfect guide of nestjs and any front-end fw (in my case Angular)
By the way, if you enjoy learning and want to dive deeper into computer science topics made simple, I run another channel where I summarize key concepts from popular programming books. I would be very glad if you subscribe to my new channel: ua-cam.com/channels/ZYhXrFwhFUOXuSQNgfk-Sw.html
Hi Thanks for the walkthrough I have faced one issue when having API and front-end (nextjs) in different domains, and after hours, I had solved it by opening the API endpoint related to getting the google oauth url in a NEW TAB so it will be in the same origin -- this cause CORS error I was getting to gone and successfully logging in I hope this may help someone later having similar situation as it is common having FE and API in different domians.
Thank you so much for this video. I have finally implemented signin in with google properly. I noticed you have a hardcoded frontend redirect url in your google/callback route. Can someone share how would i pass this frontend redirect url in the sign in with google api call so that it can be dynamic? Thanks
Started learning NestJs, React and Next. (I am comming from the Laravel world). My experience so far: You have to write a lot of code just to do a simple thing. I mean, what's the point of packages if you still have to do a lot of setup to use them? Also I din not find an ORM to do things as simple as Eloquent in Laravel. Time will prove me wrong I know, I hope.
The token doesn't contain the personal information, it only authenticates the logged in user and says they are allowed to perform actions on your API. One of those actions for example is getting the user info from the database so you can use it in the frontend.
i encountered Error: Login sessions require session support. Did you forget to use `express-session` middleware?, why on your video not error the same as me? do I miss something?
We use jwt based auth in this video which is a stateless auth approach and we don't need express-session. the other option is session-based auth in which we need to setup express-sessions. I will record a video for session based auth.
I have watched all your series from start but there is one problem, Your User/Login and Auth/login are both login endpoints, but are still serving 2 different purposes, i guess you need to combine all the 'auth/' logic into your 'user/ ' endpoints to make it even .
I got an error like this TypeError: res.setHeader is not a function at strategy.redirect (/Users/griboriy/Documents/work/nest-app/node_modules/passport/lib/middleware/authenticate.js:340:13) the only difference I am using fastify instead of express
Hey Developers 🖐🏻 Your Likes ❤ and comments 💬 means world to me. So please Like❤ and Share⭐ this video to support me.🙏🙏🔥🔥
I already did several courses for NestJS already and developed some projects with it. Today I accidentally clicked into your video and found out your video is one of the most clear and easy-to-understand courses I have ever seen. Thanks
Thanks for your support 🙏❤️
First amazing video of this branch on UA-cam… 🔥 thank you so very much 💯
Thank you so much! Your support means a lot! 💯🔥
Great video, Sakura. You explain everything clearly and effectively. Keep up the good work!
Thank you! Will do!
Super helpful! Together with your public Github repo, this series of videos constitute a perfect guide of nestjs and any front-end fw (in my case Angular)
Thanks for your support. I'm glad you're finding the series helpful! 😊🙏
I have almost finished your course, thank you for your effort
great tutorial
I'm glad you found it helpful!
By the way, if you enjoy learning and want to dive deeper into computer science topics made simple, I run another channel where I summarize key concepts from popular programming books. I would be very glad if you subscribe to my new channel: ua-cam.com/channels/ZYhXrFwhFUOXuSQNgfk-Sw.html
Amazing video, God bless you
Thank you so much! I'm glad you enjoyed the video. God bless you too! 😊✨
@@SakuraDevplease sir if you can make a fullstack with nestjs and nextjs
That will be great sir
@@apdiwhapmohmet4458 yes I going to do that
Thank you for great video today!
You're welcome! I'm glad you enjoyed it! 😊🎥
this tutorial is amazing, I understand even better and if you don't mind, Could you please add part 2 with NextJS and cookies or session cookies.
Thank you! I’ll definitely consider adding a part 2 focusing on Next.js and handling cookies or session cookies. Stay tuned for more content! 😊🔥
@@SakuraDev so excited !! , thank you
good job brother sakura
Thanks for your support 🙏🙏
Thank you 🚀🚀
Thanks a ton, Furkan! 🙏🙏❤️
Amazing ❤️
Thank you! ❤️
Great Sakura
Thanks a lot, Prashant! 🌸😊
Hi
Thanks for the walkthrough
I have faced one issue when having API and front-end (nextjs) in different domains, and after hours, I had solved it by opening the API endpoint related to getting the google oauth url in a NEW TAB so it will be in the same origin -- this cause CORS error I was getting to gone and successfully logging in
I hope this may help someone later having similar situation as it is common having FE and API in different domians.
im facing this problem , thanks for you comment
Thank you so much for this video. I have finally implemented signin in with google properly.
I noticed you have a hardcoded frontend redirect url in your google/callback route. Can someone share how would i pass this frontend redirect url in the sign in with google api call so that it can be dynamic?
Thanks
You can get the url in nextjs and then pass it with a search query to back end api
can you make a tutorial on how to link this auth api with a Nextjs front end !
Absolutely! I'll work on a tutorial that covers linking the auth API with a Next.js frontend. Stay tuned for that! 😊
Started learning NestJs, React and Next. (I am comming from the Laravel world).
My experience so far: You have to write a lot of code just to do a simple thing. I mean, what's the point of packages if you still have to do a lot of setup to use them? Also I din not find an ORM to do things as simple as Eloquent in Laravel. Time will prove me wrong I know, I hope.
Hi, 👋 welcome to my channel. Yeah you're right about the configuration of passport packages. And for ORM, the Prisma might be a good choice for you.
Awesome video. Could you do an example with NextAuth.js ??
Absolutely! I'll work on a tutorial that covers linking the auth API with a Next.js frontend. Stay tuned for that! 😊
Brilliant effort.
Can you micro-service with Nestjs, Pls
Thanks 🙏. Yes I am planning for micro services course
i love your tutorials, could you make a video how to add facebook login on nestjs
Thanks. Great suggestion!
What is next? When user receive token via redirect link from google/login request? How can we get user name email and etc?
The token doesn't contain the personal information, it only authenticates the logged in user and says they are allowed to perform actions on your API. One of those actions for example is getting the user info from the database so you can use it in the frontend.
i encountered Error: Login sessions require session support. Did you forget to use `express-session` middleware?, why on your video not error the same as me? do I miss something?
I'm a little bit confused where did you get login function in auth service )))
Where is the previus video of this course?
Hi, this is the playlist:
ua-cam.com/play/PLhnVDNT5zYN_PfPXedWpMy_UTeYNExbfR.html
nice video,
Is it possible to work with cookies instead?
To save that accesstoken, and use Cookies() in the frontend (next js) for example?
Thank you! Yes, it is possible. In the next video I will do that
@@SakuraDev when do we expect that next video ! thanks for the content btw very helpful !
how to manage for multi-tenant application
Well you need to keep track of all issued JWTs. I think I should create a video about it
It’s a good segue for supabase auth integrated with nest and next no? :)
Definitely! Integrating Supabase Auth with NestJS and Next.js is a great idea. I'll make sure to include that in the upcoming tutorials. Stay tuned! 😊
What is your theme vs code?
It's bearded theme
Login sessions require session support. Did you forget to use `express-session` middleware?
I've got this problem, does anyone know how to fix it?
We use jwt based auth in this video which is a stateless auth approach and we don't need express-session. the other option is session-based auth in which we need to setup express-sessions. I will record a video for session based auth.
@SakuraDev Hey Bro! Could you make a video about migration with TypeORM?
Hey! Sure thing, I’ll add a video on TypeORM migrations to the list. Stay tuned! 😊🔧
I have watched all your series from start but there is one problem, Your User/Login and Auth/login are both login endpoints, but are still serving 2 different purposes, i guess you need to combine all the 'auth/' logic into your 'user/ ' endpoints to make it even .
Thanks for the feedback, I will consider this in the future.
I got an error like this TypeError: res.setHeader is not a function
at strategy.redirect (/Users/griboriy/Documents/work/nest-app/node_modules/passport/lib/middleware/authenticate.js:340:13)
the only difference I am using fastify instead of express