Better Auth · Type Alias
Auth
Better Auth supports OAuth 2.0 and OpenID Connect through built-in social providers. Configure client credentials, then sign in, link accounts, request scopes, and manage provider tokens.
Last updated
Syntax
betterAuth({ socialProviders: { google: { clientId, clientSecret } } });
authClient.signIn.social({ provider });
authClient.linkSocial({ provider });In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
signIn.sociallinkSocialgetAccessTokenrefreshTokenaccountInfouser.validateUserInfogenericOAuthgetOAuthState