NextAuth v5 - Google Authentication with Next.js and NextAuth | Next.js Route Handlers

แชร์
ฝัง
  • เผยแพร่เมื่อ 3 ก.พ. 2025

ความคิดเห็น • 91

  • @bugbytes3923
    @bugbytes3923  2 หลายเดือนก่อน +1

    ☕ Buy a coffee: ko-fi.com/bugbytes
    ⭐Top resource to learn Python - datacamp.pxf.io/kOjKkV ⭐
    📹CLERK & Next.js Authentication video: th-cam.com/video/PhciU8SQ8hs/w-d-xo.html

  • @talhaeryasar3887
    @talhaeryasar3887 2 หลายเดือนก่อน +6

    Hey,
    I was looking a quick tutorial just to see how Auth.js works. And I think this is the best one I’ve seen ( I have watched quite a lot of them ). There is no fluff and nonsense it’s just what you need. Quick and useful. That’s amazing mate, I will look for your videos first from now on.
    Keep up the good work ✌🏻

    • @bugbytes3923
      @bugbytes3923  2 หลายเดือนก่อน

      Thanks a lot mate, that's amazing to hear - thank you!

  • @seydinabadiane8761
    @seydinabadiane8761 2 หลายเดือนก่อน +3

    Dang your video is fire. All that knowledge combine in 27min tutorial. You're really awesome!!!🔥

    • @bugbytes3923
      @bugbytes3923  2 หลายเดือนก่อน

      Thanks a lot dude!

  • @indexed2232
    @indexed2232 4 หลายเดือนก่อน +1

    super amazing high quality tutorial. loved how you quickly go through some of the necessary concepts to help provide context for us. Easily sat through the entire video duration without needing to constantly go back so close the knowledge gaps. Subbed!

    • @bugbytes3923
      @bugbytes3923  4 หลายเดือนก่อน +1

      Awesome to hear that, thank you for sharing and watching! Glad it was helpful!

  • @remitto8367
    @remitto8367 3 หลายเดือนก่อน +2

    Really the best tutorial I have seen on auth. Hope your channel blows up

    • @bugbytes3923
      @bugbytes3923  3 หลายเดือนก่อน

      Thanks a lot, really appreciate the comment!

    • @remitto8367
      @remitto8367 3 หลายเดือนก่อน

      @@bugbytes3923 Any videos on combining this with Magic Links or the Credentials Provider would also be awesome :D

  • @leboyoyo
    @leboyoyo 5 หลายเดือนก่อน +2

    Glad to see you do some next.js!

    • @bugbytes3923
      @bugbytes3923  5 หลายเดือนก่อน

      Thanks! Will do more if there’s some demand!

  • @amikalash
    @amikalash 2 หลายเดือนก่อน +4

    This is the video, you are looking for!

    • @bugbytes3923
      @bugbytes3923  2 หลายเดือนก่อน +1

      Thanks for that comment, awesome!

  • @orinissim9079
    @orinissim9079 3 หลายเดือนก่อน +1

    Thank you Lyle for the best tutorial out there!! Helped me a lot with my project!!! Cant thank you enough!

    • @bugbytes3923
      @bugbytes3923  3 หลายเดือนก่อน

      Awesome - glad to hear it helped, thank you for sharing!

  • @oleksandroliynyk8437
    @oleksandroliynyk8437 2 หลายเดือนก่อน +1

    thank you for the walkthrough! It was really helpful and allowed me to configure everything for myself swiftly

    • @bugbytes3923
      @bugbytes3923  2 หลายเดือนก่อน

      Glad to hear it, thanks for the comment!

  • @lfbusta
    @lfbusta หลายเดือนก่อน +1

    This is exactly the video I was looking for. Thanks!

    • @bugbytes3923
      @bugbytes3923  หลายเดือนก่อน

      @@lfbusta thanks a lot!

  • @mr.darkheart2979
    @mr.darkheart2979 3 หลายเดือนก่อน +1

    Very beautifully explained, also helps things to figure out by myself, tells you how to follow docs.

    • @bugbytes3923
      @bugbytes3923  3 หลายเดือนก่อน +1

      Awesome to hear that thanks!

  • @tech7957
    @tech7957 หลายเดือนก่อน +1

    Really amazing and Clear Video with perfect explanation! thanks man u got my sub

    • @bugbytes3923
      @bugbytes3923  หลายเดือนก่อน +1

      @@tech7957 thanks a lot man, really appreciate it and glad you liked the video!

  • @rahulsingh-bk3wd
    @rahulsingh-bk3wd 4 หลายเดือนก่อน +1

    really great tutorial. Happy for making it concise just implement it in one hour watching your video.

    • @bugbytes3923
      @bugbytes3923  4 หลายเดือนก่อน

      Thanks a lot! Glad to hear it was helpful!

  • @Peter-sc1ru
    @Peter-sc1ru หลายเดือนก่อน

    first tutorial to actually help

    • @bugbytes3923
      @bugbytes3923  หลายเดือนก่อน +1

      @@Peter-sc1ru thanks!

  • @fhkodama
    @fhkodama 4 หลายเดือนก่อน +1

    thanks, man! Really helpful! Congrats!

    • @bugbytes3923
      @bugbytes3923  4 หลายเดือนก่อน +1

      @@fhkodama glad to hear it man, thanks a lot for commenting!

  • @shubhampatel1319
    @shubhampatel1319 หลายเดือนก่อน +1

    Thanks you! this video solved my problem!

    • @bugbytes3923
      @bugbytes3923  หลายเดือนก่อน

      Awesome, glad it helped!

  • @avigdev
    @avigdev 2 หลายเดือนก่อน +1

    Good introduction!

  • @anishjoshi1999
    @anishjoshi1999 4 วันที่ผ่านมา +1

    great video thanks !!

    • @bugbytes3923
      @bugbytes3923  4 วันที่ผ่านมา

      @@anishjoshi1999 thanks a lot, glad you liked it!

  • @shashanktyagi9422
    @shashanktyagi9422 หลายเดือนก่อน

    Really great content!!. Thank you!💯

  • @jsuniversal
    @jsuniversal 4 หลายเดือนก่อน

    finally got it working, i was using some other documentation which was old and everything was not covered well, thanks.

  • @remyirconnor5074
    @remyirconnor5074 14 วันที่ผ่านมา +1

    Very good thanks a lot !

    • @bugbytes3923
      @bugbytes3923  14 วันที่ผ่านมา

      @@remyirconnor5074 awesome thanks for watching!

  • @yosoyhim
    @yosoyhim หลายเดือนก่อน

    This was awesome! thank you

    • @khan_shahnwaz
      @khan_shahnwaz หลายเดือนก่อน

      I'm getting error in route.ts in the line importing auth.ts, it says module not found, though I have the same directory as mentioned in video, src/auth

  • @amanasrani6405
    @amanasrani6405 2 หลายเดือนก่อน +1

    That's Damn Amazing, thank you so much

    • @bugbytes3923
      @bugbytes3923  2 หลายเดือนก่อน

      Thanks a lot!

  • @SmartLingua-f3s
    @SmartLingua-f3s 5 หลายเดือนก่อน +1

    Excellent)))

  • @angeloyocor3862
    @angeloyocor3862 3 หลายเดือนก่อน +1

    thank you, sir ! big help.

    • @bugbytes3923
      @bugbytes3923  3 หลายเดือนก่อน +1

      Thanks a lot, glad to hear it!

  • @QuantumCanvas07
    @QuantumCanvas07 2 หลายเดือนก่อน +3

    Thanks so much! This is exactly what I needed for my hackathon. I’m definitely going to snag that $4,000 prize. By the way, don’t you prefer using middleware in Next.js for redirection? For instance, someone with an active session cookie shouldn’t be allowed to access the sign-in page, trying to do so should redirect them to the homepage or something?

  • @AndresMartinez-se9zl
    @AndresMartinez-se9zl 27 วันที่ผ่านมา

    how do i protect my route handlers? i've created some routes in api folder that i need i tried to access the session information there with auth() but it is null

  • @mkTraylang
    @mkTraylang 4 หลายเดือนก่อน +1

    Thanks! I mean it.

    • @bugbytes3923
      @bugbytes3923  4 หลายเดือนก่อน

      Thank you for watching!

  • @khan_shahnwaz
    @khan_shahnwaz หลายเดือนก่อน

    I'm getting error in route.ts in the line importing auth.ts, it says module not found, though I have the same directory as mentioned in video, src/auth

  • @AvikNayak_
    @AvikNayak_ 11 วันที่ผ่านมา

    Do you have a video on magic link auth?

  • @Abhishekh1516techboy
    @Abhishekh1516techboy 24 วันที่ผ่านมา

    🔥🔥🔥🔥🔥

  • @yurisouzamachado
    @yurisouzamachado หลายเดือนก่อน

    Simplesmente perfeita a aula. Me ajudou muito.

  • @mohaamer6866
    @mohaamer6866 5 หลายเดือนก่อน +1

    great work mate, even though not in the django sphere, still interesting.

    • @bugbytes3923
      @bugbytes3923  5 หลายเดือนก่อน

      Thanks mate - yes. Something a bit different!

  • @hydrognspa8753
    @hydrognspa8753 24 วันที่ผ่านมา

    Is it possible to handle separated google linking? Like, I want my project to allow users to signup/login with credentials, but if a user wants to use specific modules that requires linking google account, their able to click a button in order to connect their google account with the account that is already created :(

  • @yunus5949
    @yunus5949 28 วันที่ผ่านมา

    Any "use server" example?

  • @gandalfg1479
    @gandalfg1479 7 ชั่วโมงที่ผ่านมา

    very informative video. However, the majority of the apps render Client side components. I managed to export the signin and signout from a use server file, however the auth information which is similar to state, does not work outside server side components. A practical walkthrough for the client side would be useful

  • @bansiparmar3879
    @bansiparmar3879 3 หลายเดือนก่อน

    hello working fine but 1 error occurs please guide me
    Hydration failed because the server rendered HTML didn't match the client. As a result this tree will be regenerated on the client. This can happen if a SSR-ed Client Component used

  • @DanielOliveira-mb1gc
    @DanielOliveira-mb1gc 5 หลายเดือนก่อน

    Obrigado,aprendi muito!

  • @rahilansari261
    @rahilansari261 5 หลายเดือนก่อน +1

    can you make a video with credentials as well for mongodb (and mongoose as odm )

    • @bugbytes3923
      @bugbytes3923  5 หลายเดือนก่อน

      Great suggestion, thanks! I'll add to the list.

  • @shanedonlon
    @shanedonlon 5 หลายเดือนก่อน +1

    Ohhh sounds like some getting started full-stack NextJS / Django content could be in the pipeline? 🤞

    • @bugbytes3923
      @bugbytes3923  5 หลายเดือนก่อน

      @@shanedonlon could be, for sure, if the demand is there!

  • @candrew34
    @candrew34 24 วันที่ผ่านมา

    When I click on sign out button, signOut() does not actually signs out the session. How can I fix this?

    • @candrew34
      @candrew34 24 วันที่ผ่านมา +1

      Found the issue. It was because I didn't put await in front of the function call.

    • @bugbytes3923
      @bugbytes3923  21 วันที่ผ่านมา +1

      Ah - good to hear you got it sorted!

  • @manofhat676
    @manofhat676 3 หลายเดือนก่อน

    Great content as always, can you do a django drf and next js authentication & permissions

    • @bugbytes3923
      @bugbytes3923  3 หลายเดือนก่อน

      Thanks a lot!

  • @AhmedBashir-m1s
    @AhmedBashir-m1s 4 หลายเดือนก่อน

    Please make an advance django rest api and sveltekit then next js for the same project

  • @TTX8000
    @TTX8000 3 หลายเดือนก่อน +1

    Muito bom

  • @frameff9073
    @frameff9073 5 หลายเดือนก่อน +1

    good

    • @bugbytes3923
      @bugbytes3923  5 หลายเดือนก่อน

      @@frameff9073 thanks! Bit different but something I’ve been doing for work ;)

  • @Honxd
    @Honxd 5 หลายเดือนก่อน +1

    please bugbytes make a video how to do front nextjs and django back authentication 🙏

    • @bugbytes3923
      @bugbytes3923  5 หลายเดือนก่อน +1

      Thanks for the suggestion!

    • @ifeanyinneji7704
      @ifeanyinneji7704 5 หลายเดือนก่อน +1

      Yes with setting up allauth or djrestauth with social login

  • @username_6948
    @username_6948 4 หลายเดือนก่อน

    Amazing! can you show how to use nextauth.js with oAuth with django?

    • @bugbytes3923
      @bugbytes3923  4 หลายเดือนก่อน +1

      Thanks! I'll look into some Next + Django auth videos soon, for sure.

  • @thabosiphiwemngoma1859
    @thabosiphiwemngoma1859 5 วันที่ผ่านมา +1

    We don't appreciate you enough

  • @augustobatista9724
    @augustobatista9724 20 วันที่ผ่านมา

    Try to add an image just an image inside of the button, and you will lose your mind over the stupidity os the setup

  • @rajeevanm2791
    @rajeevanm2791 20 วันที่ผ่านมา

    i am getting error ⨯ ./app/api/auth/[...nextauth]/route.js:1:1
    Module not found: Can't resolve '@/auth'
    > 1 | import { handlers } from "@/auth" // Referring to the auth.ts we just created
    | ^
    2 | export const { GET, POST } = handlers
    noduke not found