Secure RBAC System
Next.js 14 • Server Actions • HttpOnly Cookies • Middleware
How to test this app:
- Step 1: Go to Login.
- Step 2: Sign in as User (You will be denied access to secrets).
- Step 3: Logout and sign in as Admin (You will see the secrets).
- Note: Try accessing
/dashboardwithout logging in to test the Middleware.