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

  • @madougi3
    @madougi3 10 дней назад

    someone get this guy an award

  • @monterourena
    @monterourena 11 месяцев назад +2

    Best video I've seen about next-auth, really appreciate you explaining every detail of the callbacks

  • @DNAwastaken
    @DNAwastaken Год назад +2

    This is exactly what I needed! I was struggling with setting up NextAuth for MongoDB. Granted, I was using Prisma, and that was my first experience with it. Either way, thank you for this video!

  • @ekchills6948
    @ekchills6948 Год назад +3

    This clarifies alot ❤

  • @jamesfavour2957
    @jamesfavour2957 11 месяцев назад +1

    I love your video Sir. I’m currently building a shopping website for my business and your Nextauth tutorial is what I needed… you’ve got a subscriber ❤️❤️❤️
    Looking forward to your videos on More Nextjs Videos

  • @gorkemgok9313
    @gorkemgok9313 27 дней назад +1

    You are a natural.

  • @gromhellscream5581
    @gromhellscream5581 10 месяцев назад +2

    Another awesome video. Keep posting please!

  • @bilalshahid5118
    @bilalshahid5118 4 месяца назад +1

    thankx bro it help me alot and I learned a lot from you

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

      No problem! Glad you liked it! I will be going live tonight as well if you need any help or just want to stop by!

  • @a.j999
    @a.j999 10 месяцев назад +2

    that's clear teaching thanks

  • @Sylar7773
    @Sylar7773 Год назад +1

    Thank You very mutch!!!

  • @textnow5752
    @textnow5752 Год назад +1

    Awesome Bro👍 keep it up 👍👍 #From_Kashmir India

  • @gauravsharma4994
    @gauravsharma4994 Год назад +1

    Thankyou bro❤

  • @panoscool_
    @panoscool_ 10 месяцев назад +2

    Hi Brett, your videos are great. I would suggest including typescript into your tutorials

    • @brettwestwooddeveloper
      @brettwestwooddeveloper 10 месяцев назад +2

      Thanks for watching and my newer videos will be inculding TypeScript

  • @tomasdavid1643
    @tomasdavid1643 9 месяцев назад

    Very good video thank you! Could you please provide some information on how to save refreshtoken? And how to rotate it if necessary?

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

    thanks, i had a problem with nextauth, it said me access denied but the problem was in the function signin in [...nextauth] it not return a true value jjajaja

  • @kenthefley2226
    @kenthefley2226 Год назад +1

    It's weird that you posted this today. Yesterday I was thinking I need to ask you to make a video on authentication.

  • @raybenchen
    @raybenchen 9 месяцев назад +1

    How would you do if you need to add a GitHub or Facebook login and with their own respective callback logics, but one global callback function?

  • @hhh.369
    @hhh.369 Месяц назад +1

    It was a really helpfull video. I wanted to ask if I have login with credentials also than should I make the password optional in my postgres database.

  • @samking618
    @samking618 9 месяцев назад

    Hi, is there a way we can show a toast success message on successful sign in from google (or any other provider)?
    I have implemented it Credential Providers as the signIn() returns a promise in that case and we are allowed to do something like this, res = await signIn(), if res.error == null, toast.success(msg) but I am unable to do similar thing with providers like google
    any help would be appreciated

  • @CedyBeato
    @CedyBeato Год назад +1

    Awesome! Can you make a part 2 of this? that when you successfully logged in it will redirect/connect to the home page with your name and avatar from your gmail. Thanks!

  • @essohanamalou7662
    @essohanamalou7662 11 месяцев назад +1

    great article. Am I missing something? Provider component has session as prop. So how are using Provider with undefined session and you are getting good results?

    • @brettwestwooddeveloper
      @brettwestwooddeveloper 11 месяцев назад

      the root layout file should have a session={session}. I guess mine somehow still worked in the video

  • @himayukhan4659
    @himayukhan4659 11 месяцев назад

    I am having a user model which includes password also, scenerio is I am using both Google provider and credential provider, in my credentials I have two extra field.. Role:"user" and createdAt: "" what I did is in callbacks signin I want to add these two fields but now it is showing error that validation failed, pls enter your password, as Google does not send password in usessesion
    . Lmk how to handle this situation

  • @user-op4hh8le6u
    @user-op4hh8le6u 4 месяца назад +1

    After Sign in if we need to pass accessToken to external backend server build from node js to access protected routes then how will it works ?

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

      If you want to pass properties like an accessToken then you will need to use the asynchronous callbacks that Next Auth provides you. I have a video of how to pass properties into these callbacks on my channel!

  • @therealdevopsintern
    @therealdevopsintern Год назад +1

    Please clarify this: you are using 'use client' how come your console log is logging out values on the server while indicating component as client side? I'm a bit confused here.

    • @brettwestwooddeveloper
      @brettwestwooddeveloper Год назад

      Yes if client side page then it would be in client console only and server side in the VSCode server

  • @MrDzendzej
    @MrDzendzej Год назад +1

    On 9:20 the terminal is bloated with some weird warnings even tho everything should work ok. Do you know what are those and how to get rid of them? btw thanks for your work

    • @brettwestwooddeveloper
      @brettwestwooddeveloper Год назад

      yes i typed in npm run deb instead of npm run dev

    • @MrDzendzej
      @MrDzendzej Год назад

      @@brettwestwooddeveloper just before that you can see "import trace for requested module" warning. I meant this

  • @mubashirwaheed474
    @mubashirwaheed474 9 месяцев назад +1

    why aren't you using the mongodb adapter from the next-auth?

    • @brettwestwooddeveloper
      @brettwestwooddeveloper 9 месяцев назад

      I just didn't for this video, but I would recommend using the MongoDB adapter honestly.

  • @priyankagoyal2969
    @priyankagoyal2969 10 месяцев назад +1

    sir it should be on git so that everyone can use this code

  • @sinnis_879
    @sinnis_879 10 месяцев назад

    bro how can use Mysql instead of mongodb to store the user and session, please 😭

  • @BillaSaheb786
    @BillaSaheb786 Год назад

    next with postgresql

  • @codewithsuslu
    @codewithsuslu 4 месяца назад +1

    But where is the role ? Admir or user ?

  • @user-es2jt6qe2o
    @user-es2jt6qe2o 9 месяцев назад +1

    I dont want mongodb. I want postgres sir.. with love