Complete authentication module for Express.js + MongoDB + TypeScript.
- Overview — How the config system works
- Registration — Fields and validation
- Login — Identifiers and options
- Sessions — Cookie and session settings
- Security — Rate limiting, lockout, CSRF
- Password Recovery — Forgot/reset password
- Email Verification — OTP verification
- Google OAuth — Google login setup
- Login History — Event tracking
- Session Management — Device management
- Overview — Response format and conventions
- Auth Endpoints — Register, login, logout, profile
- Password Endpoints — Forgot and reset password
- Verification Endpoints — Email verification
- OAuth Endpoints — Google OAuth
- Session Endpoints — Session management
- History Endpoints — Login history
- Error Codes — Complete error reference
- Adding Custom Fields
- Custom Email Provider
- Custom Database
- Extending Middleware
- Modifying Auth Flows
- Deployment
- Express REST API — Standard API setup
- E-commerce Backend — Online store auth
- SaaS Application — Full-featured with OAuth
- Blog Platform — Username login
- Minimal Setup — Bare minimum
- Overview — How AI agents can auto-integrate this module
- Agent Prompt — Copy-paste prompt for your AI agent
- Technical Context — Module context for AI agents
- Overview — Security measures summary
- Password Security — Hashing details
- Session Security — Cookie security
- Token Security — Token handling
- Best Practices — Production checklist
- Frequently Asked Questions — Common questions and troubleshooting