Next.js Auth Tutorial with RSCs and Server Actions

Поделиться
HTML-код
  • Опубликовано: 13 июн 2024
  • This tutorial with ‪@samselikoff‬ covers the following:
    ▶ Getting started using the Authkit - Next.js integration library: github.com/workos/authkit-nextjs
    ▶ Setting up environment variables, configuring the callback route and middleware, implementing signIn and signOut functionality
    ▶ Protecting routes in the Next.js app from unauthenticated users with the getUser function
  • РазвлеченияРазвлечения

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

  • @chantastic
    @chantastic Месяц назад +1

    Love these quick start tutorials @SamSelikoff. You're great at keeping things clear and achievable.

  • @johnedet2987
    @johnedet2987 Месяц назад +1

    looks more sleek and better than clerk.. maybe I could use it on my next project

  • @jitx2797
    @jitx2797 Месяц назад

    Really like Sam's way of teaching and explaining things... Good job WorkOS

  • @dharylcarryalmora5414
    @dharylcarryalmora5414 Месяц назад

    I love this quick tutorial 🙂 +1 sub

  • @AleRovella
    @AleRovella 2 дня назад

    great product... what about localization? thanks!

  • @cb73
    @cb73 Месяц назад +3

    I don’t like the idea of collocating auth checks on the pages themselves. It would be very easy to forget to protect a page. It happens all the time to the best of us. Particularly at the API level where it’s harder to detect that you accidentally made it public. I would lock everything down with middleware and then only white list the pages you want to be public.

    • @a7kerkh
      @a7kerkh Месяц назад

      Right!

    • @mDHARYL
      @mDHARYL Месяц назад

      Yes

    • @paul_asjes
      @paul_asjes Месяц назад

      We've heard you and we're adding this as an option to authkit-nextjs!

  • @kasper369
    @kasper369 Месяц назад

    Is this like NextAuth? What's the difference

  • @AjaySingh-jz8qx
    @AjaySingh-jz8qx Месяц назад

    Guys I tried it and its literally 100x better than clerk

    • @fagnersales532
      @fagnersales532 Месяц назад

      explain

    • @AjaySingh-jz8qx
      @AjaySingh-jz8qx Месяц назад

      @@fagnersales532
      1) Fully Customizable theme
      2) No more clock skew error bullshit in development like clerk
      3) easy to integrate db alongside auth flow

  • @wata1991
    @wata1991 Месяц назад +1

    rip microsoft