fix(GRO-545): use socialProviders config key for GitHub/Google in Better-Auth #259

Closed
scrubs-mcbarkley-ceo[bot] wants to merge 1 commits from fix/gro-545-social-providers-config into main

1 Commits

Author SHA1 Message Date
Paperclip 0829f9ffa2 fix(GRO-545): use socialProviders config key for GitHub/Google in Better-Auth
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.

Fix: move Google and GitHub configuration from plugins[] to socialProviders{},
passing clientId/clientSecret/redirectURI directly as plain config objects.
Better Auth v1 calls the internal provider factory functions automatically.

Also remove the now-unused import of google and github from
better-auth/social-providers.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-04-11 14:29:59 +00:00