Log in
Email + password
How it works
Frontend -> Next -> Django
- Email login calls
POST /api/auth/tokenon Next.js (no CORS). - Next.js calls Django
POST /api/auth/token/and stores the DRF token in an HttpOnly cookie. - For Google, the backend exposes
POST /api/auth/google/which exchanges an OAuth code (or verifies an ID token) and returns a DRF token.