Next.js Auth Tutorial with RSCs and Server Actions
Ойын-сауық
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
Пікірлер: 16
Love these quick start tutorials @SamSelikoff. You're great at keeping things clear and achievable.
@samselikoff
27 күн бұрын
Thank you brother!
Really like Sam's way of teaching and explaining things... Good job WorkOS
looks more sleek and better than clerk.. maybe I could use it on my next project
I love this quick tutorial 🙂 +1 sub
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
26 күн бұрын
Right!
@mDHARYL
26 күн бұрын
Yes
@paul_asjes
24 күн бұрын
We've heard you and we're adding this as an option to authkit-nextjs!
Is this like NextAuth? What's the difference
Guys I tried it and its literally 100x better than clerk
@fagnersales532
26 күн бұрын
explain
@AjaySingh-jz8qx
26 күн бұрын
@@fagnersales532 1) Fully Customizable theme 2) No more clock skew error bullshit in development like clerk 3) easy to integrate db alongside auth flow
rip microsoft