Next.js Credentials Auth Made Easy with Better Auth

Поділитися
Вставка
  • Опубліковано 27 гру 2024

КОМЕНТАРІ • 29

  • @ItsKumaHD
    @ItsKumaHD Місяць тому

    This was huge for me transferring from auth. thank you great stuff.

  • @viejostream
    @viejostream Місяць тому +1

    been searching this. thanks cand. and im surprised that youre indonesian too... GOODLUCK ON THE CHANNEL

  • @Solohd12
    @Solohd12 Місяць тому +8

    Thanks beka 🇪🇹

    • @CandDev
      @CandDev  Місяць тому

      You're welcome, Beka! 🇪🇹

  • @kevin-dv1vd
    @kevin-dv1vd Місяць тому

    even thou i used mysql, it still the same, works fine, thanks man,

  • @Gaammee_Media
    @Gaammee_Media Місяць тому +2

    Better Auth is Better as its name

    • @CandDev
      @CandDev  Місяць тому

      yes, it's making auth easier

  • @prashlovessamosa
    @prashlovessamosa Місяць тому

    Thanks man always on time please cover it deeply for ex email verification it would be too helpful.

    • @CandDev
      @CandDev  Місяць тому +1

      I hope to cover that in the next video

    • @prashlovessamosa
      @prashlovessamosa Місяць тому

      @CandDev great 👍

  • @razorjhon2622
    @razorjhon2622 Місяць тому +1

    how can we protect our routes on the backend that only admins can use these api routes ?

  • @criteria6972
    @criteria6972 День тому

    Anyone encountered [TypeError: Body is unusable: Body has already been read] on sign in or sign up. This occurs from the first initial submit click. If I click the submit button a second time it then goes through. I read the docs for the error but we are already implementing the solution for this issue. Any help would be great.

  • @ItsKumaHD
    @ItsKumaHD 29 днів тому +1

    For some reason,
    when fetching the session
    const session = await auth.api.getSession({
    headers: await headers(), // Pass headers directly for server-side calls
    }); is returning null . any changes/updates?

  • @__nemesis__1571
    @__nemesis__1571 Місяць тому

    can you please look into it, the source code doesnt work for some reason

  • @chayanchandrosutrodhar1105
    @chayanchandrosutrodhar1105 Місяць тому

    Sir how to grab session or userId in client components??

    • @CandDev
      @CandDev  29 днів тому +1

      You can get that from authClient.getSession(), or just check the GitHub repo; I've already added a useSession hook.

  • @muhammadkabeer3924
    @muhammadkabeer3924 Місяць тому

    can you please help me out with two-factor-authentication or maybe make a video about it?

    • @CandDev
      @CandDev  Місяць тому

      better-auth doesn’t have a built-in 2FA feature yet, hopefully coming soon

    • @muhammadkabeer3924
      @muhammadkabeer3924 Місяць тому

      @@CandDev It has a 2FA feature, I tried OTP it worked fine for me, but I couldn't implement TOTP. I think you should check it out and make a video about it, implementing both OTP and TOTP. It would be very helpful for us

  • @__nemesis__1571
    @__nemesis__1571 Місяць тому

    talking about fonts, where tf are your nerd font icons 😭😭

  • @codernerd7076
    @codernerd7076 Місяць тому

    Too bad there is no 2fa or Google login

    • @anubisai
      @anubisai Місяць тому

      There are plenty of other easy options for that. When you depend on Google you sign away control over your users. As in Google can pull the plug on you any given day.

    • @codernerd7076
      @codernerd7076 Місяць тому

      @anubisai it's OAuth the user will be saved to our database they can always request a password reset not signing away any control?!

    • @zivtamary
      @zivtamary Місяць тому +1

      there is

    • @CandDev
      @CandDev  Місяць тому +1

      Google login is available, but 2FA isn’t yet. hopefully coming soon

    • @TianYuanEX
      @TianYuanEX Місяць тому +3

      Huh what? Not only does it have both google login and 2fa, it also supports google one tap (and million other features)