Better Auth · Type Alias
AuthContext
Better Auth supports OAuth 2.0 and OpenID Connect through built-in social providers. Configure a provider with its client ID and client secret, then start social sign-in through the client or server API.
Last updated
Syntax
betterAuth({ socialProviders: { google: { clientId, clientSecret } } })In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
Generic OAuth PluginsocialProviderssignIn.socialauthClientauth.apiOAuth 2.0OpenID Connect