# ADR-001: Customer Authentication Architecture ## Context iFixKart requires secure customer authentication supporting both traditional credentials and Google OAuth 2.0. ## Options Considered 1. **Third-Party Auth Provider (Auth0/Firebase)**: Quick setup, but vendor lock-in and high recurring costs at 100K daily active users. 2. **Custom JWT + Google OAuth Integration (Selected)**: RS512 JWT access tokens + opaque ULID refresh tokens stored in Redis. ## Decision & Trade-offs Select Option 2. Complete control over customer data, zero per-user licensing fees, seamless anonymous-to-customer cart merge.