The Ultimate Guide for Auth.js v5 - Part 1 (Configuration, Database, Prisma)

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

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

  • @farai2608
    @farai2608 5 часов назад

    This is the only NextAuth video that should be on the internet. Went through loads of videos and this is the only one that makes sense. Even reading the documentation now makes sense as well.

  • @bernardstein1651
    @bernardstein1651 22 дня назад +4

    Auth.js 5 has been really confusing with all the changes ill be sure to follow this series. keep up the great work

    • @brettwestwooddeveloper
      @brettwestwooddeveloper  22 дня назад

      Thank you Bernard for the sub and awesome support! I will be releasing part 2 tomorrow which will go over the Credentials and Google Provider.

    • @Praskand_Upadhyay
      @Praskand_Upadhyay 21 день назад +1

      @@brettwestwooddeveloper Deployment?

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

    Perfect tuturial very good and very good expaind. thanks.

  • @CaseStudyQB
    @CaseStudyQB 21 день назад +1

    Thanks for doing this! It’s good to see the process again with the latest version

  • @harshavshah7929
    @harshavshah7929 22 дня назад +1

    Thank you sir
    Much needed

  • @kumarutsav1903
    @kumarutsav1903 День назад

    When is the final video coming?

  • @100xcoding
    @100xcoding 11 дней назад +1

    Add role based access control into the next video

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

      For role based, do you just save your roles with the user in database? Like a field in the schema? Then you can pass through to JWT token

  • @code-o-matic
    @code-o-matic 19 дней назад +1

    I code along the video. Auth.ts is giving error. GET and POST are not exporting.

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

      Thanks for watching and make sure you destructured it from the handler just like I did

    • @brettwestwooddeveloper
      @brettwestwooddeveloper  18 дней назад

      did you end up solving the issue?

    • @code-o-matic
      @code-o-matic 18 дней назад +1

      No the issue is still there
      auth.ts
      export const {auth, handlers: {GET,POST}, signIn, signOut} = NextAuth({
      adapter: PrismaAdapter(prisma),
      session: {strategy: 'jwt'},
      ...authConfig
      })
      -------------------------------------------
      auth.ts.
      export { GET , POST } from '@/auth';
      Is it correct

    • @brettwestwooddeveloper
      @brettwestwooddeveloper  18 дней назад

      @@code-o-matic Can you join discord so you can send screenshots?