feat: add admin authentication and management features
- Implemented Prisma schema with models for AdminUser, AppSettings, and Snapshot. - Created seed script to initialize the database with an admin user and JWT secret. - Developed admin login page with form handling and error management. - Added API routes for admin login, logout, change password, and JWT verification. - Integrated Stripe for payment intent management in admin orders. - Established middleware for protecting admin routes with JWT authentication. - Created Zustand stores for managing persona and snapshot states.
This commit is contained in:
@@ -35,3 +35,5 @@ next-env.d.ts
|
||||
# IDE
|
||||
.idea
|
||||
.vscode
|
||||
|
||||
/src/generated/prisma
|
||||
|
||||
Reference in New Issue
Block a user