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 - Развлечения
Love these quick start tutorials @SamSelikoff. You're great at keeping things clear and achievable.
Thank you brother!
looks more sleek and better than clerk.. maybe I could use it on my next project
Really like Sam's way of teaching and explaining things... Good job WorkOS
I love this quick tutorial 🙂 +1 sub
great product... what about localization? thanks!
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.
Right!
Yes
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
explain
@@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