Next.js 15 Authentication COMPLETE Guide (+ Best Practices, Pitfalls)

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

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

  • @RyanGause-lj8sn
    @RyanGause-lj8sn 10 дней назад +4

    Best NextJs content on youtube

  • @r-ddle
    @r-ddle 14 дней назад +7

    I was watching a video of yours explaining prisma, and figured I wanted auth. I refresh RUclips and see this video, thank you so much!

    • @ByteGrad
      @ByteGrad  14 дней назад

      Ha nice, enjoy!

  • @manafsliman3734
    @manafsliman3734 12 дней назад +2

    Honestly man, whenever I see a video from you, I click without second though. Thank you so much for these videos.

    • @ByteGrad
      @ByteGrad  12 дней назад +1

      Awesome, enjoy!

  • @therealmartinezzz
    @therealmartinezzz 13 дней назад +2

    I don't know what to say about the quality of the videos teaching skills especially the voice Just amazing Next level Thank you so much 🙏🏻

  • @AMAZON-BEST-FASHION-8
    @AMAZON-BEST-FASHION-8 12 дней назад +1

    Your resilience turns challenges into stepping stones

  • @moonandastar
    @moonandastar 8 часов назад +1

    I like your content, please keep it up

  • @onigbindedavid6630
    @onigbindedavid6630 7 дней назад +1

    Please I have a problem while using nextauth in the credentials provider, anytime I try to access my Usermodel schema it keep saying it's undefined but if i access it in server actions it won't give error.

    • @onigbindedavid6630
      @onigbindedavid6630 7 дней назад

      I connected to mongodb using mongoose. But reading the documentation for the adapter there's no mongoose direct

  • @mlindatech
    @mlindatech 6 дней назад +1

    Great video now after watching your video I am switching from nextAuth to Kinde...much appreciated bro!😊

  • @ebukachuqz
    @ebukachuqz 2 часа назад +1

    Love this. Thank you Sir

  • @Antel_007
    @Antel_007 14 дней назад +5

    I wish you'd leave the repo so some of us beginners can take a look. hehe. Thanks

    • @ByteGrad
      @ByteGrad  14 дней назад +1

      Ah yeah will take a look soon to see if I can do that

  • @aaron61378
    @aaron61378 14 дней назад +2

    I need this rn! Thank you so much!!!

  • @abhinavsingh7919
    @abhinavsingh7919 14 дней назад +1

    Cool man! was just implementing next auth in a project me self

  • @wolfie8748
    @wolfie8748 8 дней назад +1

    Thank you so much omg!!!!!!!
    i also love your theme is it custom made easier to read

  • @shawnp7121
    @shawnp7121 14 дней назад +1

    34:37 Shouldn't the permission be checked rather than the role? If not, what's the point of grouping permissions into a role?

    • @ByteGrad
      @ByteGrad  14 дней назад

      Yes that’s also possible

  • @tomascorreialc
    @tomascorreialc 6 дней назад +1

    Great video, where you talk about the static and dynamic pages, you can have now dynamic components on a static page with partial pre rendering right? I was wondering why you didn’t mention it…

    • @ByteGrad
      @ByteGrad  6 дней назад +1

      Thanks. PPR may indeed be a solution to this, but it's still experimental.

  • @changkaizhao
    @changkaizhao 13 дней назад +1

    4:27 why we need both access token and refresh token, why not only one session token for auth, refresh_token should be used only for updating access token and should not be sent in Cookie every request. it should be stored in somewhere like memory.

  • @urboifox
    @urboifox 14 дней назад +2

    Thanks, can you talk about auth with external apis with meta frameworks like next.js?
    for example if I'm using next.js and the backend is something like laravel, it gets so frustrating there. thanks again.

    • @ByteGrad
      @ByteGrad  14 дней назад

      Great idea

    • @guyrandalf711
      @guyrandalf711 13 дней назад

      But why on earth would you want to use Nextjs and Laravel. It just beats the purpose of why Nextjs was designed in the first place

    • @tuliof
      @tuliof 13 дней назад +1

      @@guyrandalf711”hey, I have this REST API built using Java and Spring Boot, can you build the frontend?”

    • @guyrandalf711
      @guyrandalf711 13 дней назад

      @@tuliof If I have a UI/UX design, sure I can build the front end with React!

  • @dreamsachiever212
    @dreamsachiever212 14 дней назад +1

    I got great insights from this vid. Thanks

    • @ByteGrad
      @ByteGrad  14 дней назад

      Glad to hear it!

  • @BLC-u3b
    @BLC-u3b 11 дней назад +1

    You are awesome man thank you🙏

    • @ByteGrad
      @ByteGrad  11 дней назад

      No problem 👍

  • @MiteshDave-t6m
    @MiteshDave-t6m 3 дня назад +1

    Where is repo of this project?

  • @PraveenramDeveloper
    @PraveenramDeveloper 3 дня назад

    Can the API routes are accessible through postman / other react app i am getting csrf token issue could you please help me

  • @CleverGeneration
    @CleverGeneration 13 дней назад +1

    Really insightful, thank you! 👏

  • @BrunoFukumori
    @BrunoFukumori 12 дней назад +1

    Excellent content! Could you bring some video about implementing authentication in Next.js without third party solutions and using Bearer Token instead cookies?

  • @sidds09
    @sidds09 14 дней назад +1

    thanks. pls also do show complete crud with server action.

  • @sssrikanthhh
    @sssrikanthhh 14 дней назад

    Great video wesley❤

  • @hameeeed5992
    @hameeeed5992 11 дней назад

    Thanks bruh ❤

  • @AsemAmr19
    @AsemAmr19 11 дней назад +1

    Thank you so much for the effort your making, can you make us a favor and give us the source code of this code so we can look at the code and try to play with it

  • @VikrantJung
    @VikrantJung 14 дней назад

    VSCode theme name you're using??

  • @404-not-found-service
    @404-not-found-service 13 дней назад +1

    Gracias, muy buen video!

  • @radezzientertainment501
    @radezzientertainment501 14 дней назад +1

    nice! im implementing auth in a rr7 app and I enjoyed this content :)

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

    i thought ROUTE HANDLERS were running on the 'Cliente side'