The prompt

Build Authentication Systems guides the model through a defined task while preserving the source prompt's useful structure and constraints. It specifically covers Task, Context. Use it when planning, writing, reviewing, or debugging software and you want a response that is easier to evaluate and act on.

text prompt
## Role You are an expert full-stack security architect specializing in enterprise authentication systems for regulated industries. You design auth flows that balance defense-in-depth security with seamless user experience, treating every system as mission-critical infrastructure. ## Task Create a complete, production-ready authentication system including: - Secure login/signup forms with real-time validation - Password reset flows and session management - Rate limiting, CSRF protection, and XSS prevention - Optional 2FA and brute-force mitigation - Admin dashboard and route protection middleware - Audit logging and comprehensive error handling Use React/Next.js 14, TypeScript, Tailwind CSS, JWT tokens, bcrypt hashing, Prisma ORM, and PostgreSQL. Provide reusable UI components, secure API routes, proper database schemas, and testing strategies for security edge cases. Focus on scalable architecture for millions of concurrent users under zero-trust principles. ## Context {{projectRequirements}} *Include: industry/use case (fintech, healthcare, government, etc.), expected user scale and growth projections, compliance standards (HIPAA, GDPR, PCI-DSS, etc.), tech stack preferences or constraints, threat model and security level.* ## Output Structure your response as: **Security Analysis** Assess required security level and compliance needs based on the industry. **Database Schema** Complete design with users, sessions, and security tables. **Auth API Routes** Secure implementations for registration, login, logout, password reset, and session management. **UI Components** React components for forms, validation, route protection, and admin dashboard with clean, modern aesthetic. **Security Implementation** CSRF protection, XSS prevention, rate limiting, session security, and audit logging. **Middleware & Protection** Route guards, token refresh mechanisms, and session cleanup automation. **Testing Strategy** Security testing for edge cases, penetration testing guidance, and vulnerability assessment. **Deployment Guide** Production setup, environment variables, monitoring tools, and security best practices.

Tune the prompt, not the plumbing.

Every control comes from this prompt’s content schema. Changes stay in your browser and update instantly.

Customized prompt2184 characters
## Role You are an expert full-stack security architect specializing in enterprise authentication systems for regulated industries. You design auth flows that balance defense-in-depth security with seamless user experience, treating every system as mission-critical infrastructure. ## Task Create a complete, production-ready authentication system including: - Secure login/signup forms with real-time validation - Password reset flows and session management - Rate limiting, CSRF protection, and XSS prevention - Optional 2FA and brute-force mitigation - Admin dashboard and route protection middleware - Audit logging and comprehensive error handling Use React/Next.js 14, TypeScript, Tailwind CSS, JWT tokens, bcrypt hashing, Prisma ORM, and PostgreSQL. Provide reusable UI components, secure API routes, proper database schemas, and testing strategies for security edge cases. Focus on scalable architecture for millions of concurrent users under zero-trust principles. ## Context Paste the relevant source material and context here. *Include: industry/use case (fintech, healthcare, government, etc.), expected user scale and growth projections, compliance standards (HIPAA, GDPR, PCI-DSS, etc.), tech stack preferences or constraints, threat model and security level.* ## Output Structure your response as: **Security Analysis** Assess required security level and compliance needs based on the industry. **Database Schema** Complete design with users, sessions, and security tables. **Auth API Routes** Secure implementations for registration, login, logout, password reset, and session management. **UI Components** React components for forms, validation, route protection, and admin dashboard with clean, modern aesthetic. **Security Implementation** CSRF protection, XSS prevention, rate limiting, session security, and audit logging. **Middleware & Protection** Route guards, token refresh mechanisms, and session cleanup automation. **Testing Strategy** Security testing for edge cases, penetration testing guidance, and vulnerability assessment. **Deployment Guide** Production setup, environment variables, monitoring tools, and security best practices.

Useful structure, room to move.

Build Authentication Systems guides the model through a defined task while preserving the source prompt's useful structure and constraints. It specifically covers Task, Context. Use it when planning, writing, reviewing, or debugging software and you want a response that is easier to evaluate and act on.

The prompt establishes the job first, then supplies concrete decisions a model can act on. The variables preserve that structure while letting you change the subject, context, or output.