Authentication
Authentication system documentation for the Momentum platform, including AWS Cognito configuration and social login setup.
Overview
Momentum uses AWS Cognito User Pools for authentication with support for:
- Email/Password - Standard credential-based login
- Social Login - Google, Facebook, Apple Sign-In
- User Groups - admin, premium, free tiers
Architecture
User → Cognito User Pool → JWT Token → API Gateway → Lambda
↓
Social Identity Providers
(Google, Facebook, Apple)
Documentation
Setup Guides
- Social Login Setup - Configure OAuth providers
Implementation
- Auth Tests Guide - Testing authentication flows
- Auth Tests Fix Summary - Test fixes documentation
- Auth Tests Implementation Report - Implementation details
Bug Fixes
- Social Login Fix - Social auth troubleshooting
Frontend Auth Module
Location: frontend/lib/auth/
auth/
├── cognito-config.ts # Cognito configuration
├── sign-up.ts # Registration flow
├── sign-in.ts # Login flow
├── session.ts # Session management
├── password.ts # Password reset
└── social-login.ts # OAuth providers