Examples
Server configuration
English
Client setup
English
What it covers
betterAuth({...})andcreateAuthClient({...}), including database adapters, email and password settings, social providers, sessions, rate limits, trusted origins and advanced options.- Built-in and official plugins, named by what they add (two-factor authentication, organizations, admin tools, passkeys, magic links and more).
- Route handler exports such as
export const { GET, POST } = toNextJsHandler(auth). - Calls to the server and client APIs, read by the endpoint they hit.
Translating
The English phrasebook is exported asen and typed as BetterAuthPhrases.