# GRO-545: GitHub/Google Auth

## Summary
Fixed GitHub/Google OAuth sign-in for GroomBook by correctly configuring Better Auth v1 social providers.

## Status: COMPLETED
- Fix committed: `0829f9f` on branch `fix/gro-545-social-providers-config`
- Typecheck: PASS
- Lint: PASS (only pre-existing warnings)
- Tests: 13/13 auth tests PASS

## Problem
PR #257 placed google() and github() from better-auth/social-providers into the plugins[] array. Better Auth v1 does not recognize social providers via plugins — it reads them from options.socialProviders. This caused Provider not found (404) on every GitHub/Google sign-in attempt.

## Solution
Move Google and GitHub configuration from plugins[] to socialProviders{} in `apps/api/src/lib/auth.ts`, passing clientId/clientSecret/redirectURI directly as plain config objects.

## Key Files
- apps/api/src/lib/auth.ts (fix location)
- apps/api/src/__tests__/auth.test.ts
- apps/api/src/__tests__/authProvider.test.ts

## Related Issues
- GRO-546: Fix GitHub/Google OAuth redirect URI configuration (also related to social auth)
- GRO-531: Add Google/GitHub social login for Demo environment
