Skip to content
masterclass Buddy

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.

Subscribe
  • Generic OAuth Plugin
  • socialProviders
  • signIn.social
  • authClient
  • auth.api
  • OAuth 2.0
  • OpenID Connect

Source: OAuth. Checked 2026-11-03.