What problem does it solve?
This skill ensures the MutuaPIX authentication system is robust and secure, preventing critical vulnerabilities like mock mode exposure in production. It streamlines managing login flows, environment configurations, and CSRF token handling.
Core Features & Use Cases
- Vulnerability Detection & Remediation: Identifies and provides fixes for insecure mock mode configurations (e.g.,
authStore initializing with mock users in production).
- Comprehensive Deployment Checklist: Guides through backend and frontend deployment steps, including cache clearing and environment variable validation.
- Use Case: Before deploying a new authentication feature, use this skill to verify all environment variables are correctly set, mock mode is disabled, and the login flow functions securely in production, avoiding accidental security breaches.
Quick Start
Example: Verify production environment variables on VPS
ssh [email protected] 'cat /var/www/mutuapix-frontend-production/.env.production | grep NODE_ENV'
Expected output: NEXT_PUBLIC_NODE_ENV=production