Bits
auth.google — Someone signs in with Google
- Trigger: "Continue with Google" on
/sign-in, shown when the app hasNEXT_PUBLIC_GOOGLE_SIGN_IN=true. - Who: anyone with a Google account.
- Path:
sign-in-form.tsx→authClient.signIn.social({ provider: "google" })→ Google →GET /auth/callback/google→session→ redirect. - Data: writes
user,account(provider id only),session. - Rules: enabled only when the API has
GOOGLE_CLIENT_IDandGOOGLE_CLIENT_SECRET. Same role sync as the email link. - Errors: Better Auth's error page.
- Test: manual: needs real Google OAuth credentials and a Google account, which tests can't hold. Steps: set
GOOGLE_CLIENT_IDandGOOGLE_CLIENT_SECRETinapps/api/.envandNEXT_PUBLIC_GOOGLE_SIGN_IN=trueinapps/app/.env, open/sign-in?next=/me, press "Continue with Google", pick an account, and check/mesays "Signed in as" that address. - Observe: API log lines with
bit: "auth.callback". - Status: not verified — 2026-10-27