NestJS Google OAuth 2 + React App

Поделиться
HTML-код
  • Опубликовано: 13 янв 2025

Комментарии • 62

  • @SakuraDev
    @SakuraDev  5 месяцев назад +1

    Hey Developers 🖐🏻 Your Likes ❤ and comments 💬 means world to me. So please Like❤ and Share⭐ this video to support me.🙏🙏🔥🔥

  • @hughqing2628
    @hughqing2628 2 месяца назад +3

    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

    • @SakuraDev
      @SakuraDev  2 месяца назад

      Thanks for your support 🙏❤️

  • @willswill8163
    @willswill8163 2 месяца назад

    Great video, Sakura. You explain everything clearly and effectively. Keep up the good work!

    • @SakuraDev
      @SakuraDev  2 месяца назад

      Thank you! Will do!

  • @Mahadev-x7u
    @Mahadev-x7u 5 месяцев назад +1

    First amazing video of this branch on RUclips… 🔥 thank you so very much 💯

    • @SakuraDev
      @SakuraDev  5 месяцев назад +1

      Thank you so much! Your support means a lot! 💯🔥

  • @bhalperin
    @bhalperin 5 месяцев назад

    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)

    • @SakuraDev
      @SakuraDev  5 месяцев назад

      Thanks for your support. I'm glad you're finding the series helpful! 😊🙏

  • @minhducPham0511
    @minhducPham0511 3 месяца назад +1

    I have almost finished your course, thank you for your effort

  • @apdiwhapmohmet4458
    @apdiwhapmohmet4458 5 месяцев назад +1

    Amazing video, God bless you

    • @SakuraDev
      @SakuraDev  5 месяцев назад +1

      Thank you so much! I'm glad you enjoyed the video. God bless you too! 😊✨

    • @apdiwhapmohmet4458
      @apdiwhapmohmet4458 4 месяца назад

      @@SakuraDevplease sir if you can make a fullstack with nestjs and nextjs
      That will be great sir

    • @SakuraDev
      @SakuraDev  4 месяца назад

      @@apdiwhapmohmet4458 yes I going to do that

  • @Lucid-xg6ur
    @Lucid-xg6ur 5 месяцев назад

    Thank you for great video today!

    • @SakuraDev
      @SakuraDev  5 месяцев назад

      You're welcome! I'm glad you enjoyed it! 😊🎥

  • @furkanc6407
    @furkanc6407 4 месяца назад

    Thank you 🚀🚀

    • @SakuraDev
      @SakuraDev  4 месяца назад

      Thanks a ton, Furkan! 🙏🙏❤️

  • @PattySpicy
    @PattySpicy 5 месяцев назад

    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.

    • @SakuraDev
      @SakuraDev  5 месяцев назад +2

      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! 😊🔥

    • @PattySpicy
      @PattySpicy 5 месяцев назад

      @@SakuraDev so excited !! , thank you

  • @bhooom2389
    @bhooom2389 5 месяцев назад

    Amazing ❤️

    • @SakuraDev
      @SakuraDev  5 месяцев назад

      Thank you! ❤️

  • @nidhalchelhi2655
    @nidhalchelhi2655 5 месяцев назад +2

    can you make a tutorial on how to link this auth api with a Nextjs front end !

    • @SakuraDev
      @SakuraDev  5 месяцев назад +3

      Absolutely! I'll work on a tutorial that covers linking the auth API with a Next.js frontend. Stay tuned for that! 😊

  • @ジャンギルラフルJANGIRRAHUL
    @ジャンギルラフルJANGIRRAHUL 4 месяца назад

    good job brother sakura

    • @SakuraDev
      @SakuraDev  4 месяца назад

      Thanks for your support 🙏🙏

  • @tarunparmar831
    @tarunparmar831 21 день назад

    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

    • @SakuraDev
      @SakuraDev  21 день назад

      You can get the url in nextjs and then pass it with a search query to back end api

  • @prashlovessamosa
    @prashlovessamosa 5 месяцев назад

    Great Sakura

    • @SakuraDev
      @SakuraDev  5 месяцев назад

      Thanks a lot, Prashant! 🌸😊

  • @zayyanabdillah7031
    @zayyanabdillah7031 2 месяца назад

    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?

  • @MultiVasya
    @MultiVasya 3 месяца назад

    I'm a little bit confused where did you get login function in auth service )))

  • @mileandrews4358
    @mileandrews4358 2 месяца назад

    Where is the previus video of this course?

    • @SakuraDev
      @SakuraDev  2 месяца назад

      Hi, this is the playlist:
      ruclips.net/p/PLhnVDNT5zYN_PfPXedWpMy_UTeYNExbfR

  • @w3mw
    @w3mw 5 месяцев назад

    nice video,
    Is it possible to work with cookies instead?
    To save that accesstoken, and use Cookies() in the frontend (next js) for example?

    • @SakuraDev
      @SakuraDev  5 месяцев назад +4

      Thank you! Yes, it is possible. In the next video I will do that

    • @nidhalchelhi2655
      @nidhalchelhi2655 5 месяцев назад

      @@SakuraDev when do we expect that next video ! thanks for the content btw very helpful !

  • @netsudro
    @netsudro 19 дней назад

    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.

    • @SakuraDev
      @SakuraDev  19 дней назад +1

      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.

  • @pangeaos
    @pangeaos 5 месяцев назад

    Awesome video. Could you do an example with NextAuth.js ??

    • @SakuraDev
      @SakuraDev  5 месяцев назад +1

      Absolutely! I'll work on a tutorial that covers linking the auth API with a Next.js frontend. Stay tuned for that! 😊

  • @venobrun
    @venobrun 3 месяца назад

    What is next? When user receive token via redirect link from google/login request? How can we get user name email and etc?

    • @FloKorp86
      @FloKorp86 Месяц назад +1

      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.

  • @markjones6894
    @markjones6894 5 месяцев назад

    It’s a good segue for supabase auth integrated with nest and next no? :)

    • @SakuraDev
      @SakuraDev  5 месяцев назад

      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! 😊

  • @mustapharabiuadeola3646
    @mustapharabiuadeola3646 3 месяца назад

    Brilliant effort.
    Can you micro-service with Nestjs, Pls

    • @SakuraDev
      @SakuraDev  3 месяца назад +1

      Thanks 🙏. Yes I am planning for micro services course

  • @patelmonil7649
    @patelmonil7649 20 дней назад

    how to manage for multi-tenant application

    • @SakuraDev
      @SakuraDev  19 дней назад

      Well you need to keep track of all issued JWTs. I think I should create a video about it

  • @MiguelAngel-ot2br
    @MiguelAngel-ot2br 4 месяца назад

    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?

    • @SakuraDev
      @SakuraDev  3 месяца назад

      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.

  • @juanjara5086
    @juanjara5086 3 месяца назад

    What is your theme vs code?

    • @SakuraDev
      @SakuraDev  3 месяца назад

      It's bearded theme

  • @Herox_Js
    @Herox_Js 4 месяца назад

    i love your tutorials, could you make a video how to add facebook login on nestjs

    • @SakuraDev
      @SakuraDev  4 месяца назад

      Thanks. Great suggestion!

  • @AdityaSharma-t3c
    @AdityaSharma-t3c Месяц назад

    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 .

    • @SakuraDev
      @SakuraDev  Месяц назад

      Thanks for the feedback, I will consider this in the future.

  • @ysdev___
    @ysdev___ 5 месяцев назад

    @SakuraDev Hey Bro! Could you make a video about migration with TypeORM?

    • @SakuraDev
      @SakuraDev  5 месяцев назад

      Hey! Sure thing, I’ll add a video on TypeORM migrations to the list. Stay tuned! 😊🔧

  • @venobrun
    @venobrun 3 месяца назад

    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