Implement complete auth flows with JWT/session management, protected routes, and role-based access.
Implement authentication for [framework/platform]. Requirements: - Sign up with email validation and password strength requirements - Sign in with proper credential verification - Password reset flow with secure token generation - Session/JWT management with proper expiry and refresh - Protected route middleware/HOC that redirects unauthenticated users - Role-based access control (RBAC) with permission checks - CSRF protection for cookie-based sessions - Rate limiting on auth endpoints (prevent brute force) - Secure password hashing (bcrypt with proper rounds) - Input sanitization to prevent injection attacks - Proper error messages (don't reveal if email exists) - Logout that properly invalidates sessions - Remember me functionality with extended session - Follow OWASP authentication best practices - Use existing auth library/service in this project (don't reinvent)
Generate optimized .cursorrules files tailored to your project's tech stack, conventions, and team preferences. Covers TypeScript, Python, Rust, Go, and more.
Leverage Cursor's Agent mode to build complete features end-to-end. Handles file creation, terminal commands, dependency installation, and multi-file edits in one flow.
Generate complete React components with TypeScript types, props interface, stories, and unit tests in one prompt.
Generate robust Next.js API routes with Zod validation, error handling, rate limiting, and TypeScript types.
Design database tables with proper types, constraints, indexes, and migration files for PostgreSQL/Supabase.
Generate FastAPI endpoints with Pydantic request/response models, dependency injection, and async database operations.