This project demonstrates authentication and role-based authorization using NextAuth.js, supporting both Credentials and OAuth (Google) providers.
Users can register and authenticate via email/password or sign in using a Google account. Upon successful authentication, access to the /dashboard route is granted.
Access to the /admin route is restricted and protected by role-based access control (RBAC). Only users with the admin role can access this route.
To test admin-level access, use the following credentials:
Email: admin@example.com
Password: admin@123