Next.js 14 Authentication (Kinde Auth, Server Actions, Roles & Permissions)

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

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

  • @ByteGrad
    @ByteGrad  8 месяцев назад +3

    Hi, my latest course is out now (Professional React & Next.js): bytegrad.com/courses/professional-react-nextjs -- I'm very proud of this course, my best work!
    I'm also a brand ambassador for Kinde (paid sponsorship). Check out Kinde for authentication and more bit.ly/3QOe1Bh

    • @bennetukoh3506
      @bennetukoh3506 6 месяцев назад

      Hey Byte, Someone wants to pay for the course for me. He is using his card to pay directly while i should be the one using the content. How do i go about that? I am Bennet from Nigeria.

  • @shumit
    @shumit Год назад +5

    10 out of 10. To the point, no fluffs. Authentication on server, on client, roles and permissions for authorization, route protection, UI show/hide based on authentication and authorization - job done!! SIMPLY TOP CLASS !! THANK YOU SO VERY MUCH !!! Kinde folks should be indebted to you !!

  • @imkir4n
    @imkir4n Год назад +77

    Wesley, Could you create a similar video but with custom JWT authentication and a separate backend? This should include token rotation and route protection for both the client and server.

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

      Yes please.

    • @dawid_dahl
      @dawid_dahl Год назад +18

      And hopefully refresh token handling… 😄

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

      This will be highly appreciated indeed and!!

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

      Without using next.Auth

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

      wiith phone

  • @devardilshad3944
    @devardilshad3944 8 месяцев назад +2

    100 out of 10, can't ask for more this single video cleared a mountain of questions in my head.

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

    Hey man this is one of the best videos I have ever seen explaining auth in nextjs
    Keep going!!!!!

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

    Great video, just what I was looking for! Any chance of a link to the GitHub repo?

  • @ahmadasgf7656
    @ahmadasgf7656 8 месяцев назад +2

    pls someone tell me how to CRUD user data from kinde?

  • @ComputationalArt
    @ComputationalArt 8 месяцев назад +1

    All the tutorials are with third party authentication backend, but what if it was custom with JWT and cookies?, do you have a tutorial on this?

  • @vinojanabhimanyu2632
    @vinojanabhimanyu2632 Год назад +5

    Can you please give the GitHub URL for this project?

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

    Hey, I really like your channel. However, I have difficulties following along since there is no GitHub repo for the project. A starter GitHub repo would be nice. Thanks

  • @sebastiancastillo3560
    @sebastiancastillo3560 Год назад +5

    It would be very helpful if you could give us an example of how to manage JWT token for authentication, in my case I use python and django as backend due to the complexity of the data, but I ran into many problems with nextjs13, cookies and the behavior in the mobile browser. Thank you very much for your videos, they are very helpful!

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

    please can you also do a video on the best way to deploy a next js application to vercel. server and client ?

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

    I'm interested in authentifacation based on next+websockets+some token. Could you create this video?

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

    is it possible to link to the repository?

  • @Racine14
    @Racine14 7 месяцев назад

    How to pass user data into mongodb database.

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

    Thanks for this video. I wonder, in a simple scenario where you have admin users and basic users, can't you just check on the user role (basic or admin) instead of checking on permissions? In my project I have an admin area that is only for user in the admin role.

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

      Yep, that’s also possible

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

    Thanks for sharing you knowledge in such clear and concise manner. I have a question though. What is your take on where Tanstack ReactQuery library sit with the advanced data fetching and caching capabilities of Next.js 14?

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

      Thanks! Will create a video about this soon

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

    where is the starter code?
    git hub repo?

  • @0x-003
    @0x-003 Год назад +1

    Can you make a video, where you talk about yourself, how you became a developer, your background, tips/advice for newcomers etc.

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

    Awesome, thank you

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

    Kinde is a nice auth, and pricing is also good

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

    For the actions.ts file formData: FormData I didn't see you import a type for the formdata or does next automatically gives it FormData type

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

    excellent video. what vs code theme do you use?

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

    Protecting addQuestion server action with getKindeServerSession seems repetitive and it's violates DRY principle (dont-repeat-yourself), I guess the answer still should be a middleware, so we should be able to setup a middleware properly. Also, we violate a single responsibility principle, our addQuestion does 2 things, while it suppose to do one thing and one thing only.

  • @AdeCrowndayo
    @AdeCrowndayo 7 месяцев назад +1

    Bro, Well Done !,, the source code would be very helpful.

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

    Please make a video on phone authentication

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

    Hi might be a stupid question but i saw some videos on Signals and wanted to ask if there are usecases for them in nextjs or if they can be used in next js. looks like they make a lot of stuff easier.

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

    Hi Wesley,
    Will you make a short video on projects that you built in your React and Nextjs course

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

    Hello, what theme do you use?

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

    Hey Wes, great content!, On this specific scenario where you want the logged-in user information, and you have the auth logic in Next server actions. Would you rather leave the server component on top and drill the user as a prop in a client-component? or you prefer to host it in a context? I am assuming that having the server component on top and passing the user as a prop would work, but I am not sure about implications on the client component. Lets say the client component also needs to use more server actions, should this actions be passed also as props? or in this case we can keep a server component in a custom hook???

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

      If you need the user data in a client component you can just use the React hook that Kinde gives you (they already do the whole thing with the Context API to keep track of the user info on the client)

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

      Ok, I am not using Kinde, but I think I got the answer after watching your server actions video. I got confused because server actions are also imported to use them, but didn’t know if they would turn to client components because of this.

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

      I also found this interesting: (Next docs) : If you need to use the same data (e.g. current user) in multiple components in a tree, you do not have to fetch data globally, nor forward props between components. Instead, you can use fetch or React cache in the component that needs the data without worrying about the performance implications of making multiple requests for the same data.
      This is possible because fetch requests are automatically memoized

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

    Whats your vs code theme

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

    Any plans on having your course hosted on Udemy platform?

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

    This Next14 we die there. Survival of the fittest, Never give up Sia

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

    code?

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

    dope content

  • @7doors847
    @7doors847 Год назад +1

    Awesome

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

    Please make paid course on Nestjs microservices and AWS

  • @chesterxp508
    @chesterxp508 8 месяцев назад +1

    GoodJob!

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

    please subtitles!!!

  • @쿵푸허술
    @쿵푸허술 Год назад

    It's kinda weird to see him in clear voice 😂

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

    First🎉