zooly-auth is a self-contained Next.js application that serves as the Single Sign-On (SSO) provider for the entire platform. It handles all authentication and authorization across all apps in the monorepo.

zooly-authapps/zooly-authThe auth app is a special project designed to serve as an SSO for the entire application:
returnTo flow, and a popup flow for no-redirect loginThe app implements two authentication flows:
auth.zooly.ai?returnTo=<original-url> and the auth app redirects them back after login.loginWithPopup() (from the @zooly/auth-client package) to open auth.zooly.ai/popup in a popup window. The popup runs the same email/password and social login flows, then signals success via postMessage and closes itself — the calling window never navigates and re-reads the session from /api/me.A hidden-iframe flow was considered early on but isn't viable: Cognito's Hosted UI refuses to be framed, so social login can't complete inside an iframe. See Popup Login (No-Redirect) for the full design, including the popup route (/popup, /popup-complete) and the /api/me polling fallback used when a provider's OAuth page severs window.opener.
dev - Start development server on port 3003build - Build for productionstart - Start production serverlint - Run ESLintFor more details on the auth architecture and integration, see: