You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Set up admin authentication using NextAuth.js (Auth.js) with credentials provider. This includes login/logout functionality, session management, and middleware to protect admin routes.
Tasks:
Install and configure NextAuth.js with credentials provider
Create login page at src/app/admin/login/page.tsx
Implement password hashing utilities (bcrypt)
Set up authentication middleware to protect /admin/* routes
Description:
Set up admin authentication using NextAuth.js (Auth.js) with credentials provider. This includes login/logout functionality, session management, and middleware to protect admin routes.
Tasks:
src/app/admin/login/page.tsxbcrypt)/admin/*routessrc/lib/auth/