Spec: Google authentication
Enable Google OAuth on the existing Auth.js v4 credentials app.
Already in this repo
GoogleProviderinlib/auth.tswhenGOOGLE_CLIENT_IDandGOOGLE_CLIENT_SECRETare set- Sign-in button via
enableGoogle users.password_hashis nullableupsertUserByEmailinlib/users.tsso Google users get our UUID
Do this
1. Google Cloud OAuth client. Redirect {SITE_URL}/api/auth/callback/google. 2. Set env vars. Never commit them. 3. Keep email/password working. Link by verified email.
See .agents/skills/add-google-auth/SKILL.md.