OptionalauthOptionalbaseOptionalbaseOptionalcookieOptionaldisableOptionalenableEmail/password sign-in. Defaults to authMode === "email", so an OIDC
deployment does not also expose an open email/password login.
OptionalenableOptionaloidcOptionalauthorizationEndpoint?: stringOptionaldiscoveryEndpoint?: stringOptionaljwksEndpoint?: stringOptionalmapping?: {Claim names to read the user's fields from, instead of the standard ones.
Optionalemail?: stringOptionalemailVerified?: stringThe claim is read as verified when it is true or "true".
OptionalextraFields?: Record<string, string>Optionalid?: stringOptionalimage?: stringOptionalname?: stringOptionalpkce?: booleanOptionalproviderId?: stringOptionalscopes?: string[]OptionaltokenEndpoint?: stringOptionaluserinfoEndpoint?: stringOptionalratePer-client-IP limit on the auth routes (default 20 requests / 15 min,
IPv6 clients by /64, at most maxKeys clients tracked: 100 000).
Raise it when a backend calls these routes on behalf of many users from
one IP (e.g. through the SDKs), or pass false to disable it.
Optionalsocialbetter-auth's socialProviders option, as is.
Optionaltrusted
Lifetime of better-auth's signed session cookie cache, in seconds (default 300). Sessions are checked against that cookie without a database lookup, so a session revoked by sign-out or "revoke sessions" keeps working this long; lower it to shorten that window.