Release / build-and-push (push) Has been cancelled
Auth.js v5 calls signIn before the new user's row is fully committed, so inserting into household_members immediately caused a FK violation for any new user (e.g. cam on first sign-in). Enrollment is now handled lazily in getCurrentSession's auto-enroll fallback, which runs after the session is established and the user row is guaranteed to exist. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>