This video will look at implementing role-based access control in NextJs 13 using the NextAuth (Auth.js) library.
👉🏼 The Ultimate NextJs Course
🔗 www.hamedbahram.io/courses/ne...
👉🏼 Project source code (checkout the `role-based-auth` branch)
🔗 github.com/HamedBahram/next-a...
👉🏼 Auth.js documentation
🔗 authjs.dev/guides/basics/role...
👉🏼 Work with me
🔗 www.hamedbahram.io/hire
Chapters
0:00 Intro
1:00 Project setup
3:15 Role-based access control
9:36 Using the middleware
13:10 Outro
13 июл 2024