unstale

npm / @better-auth/core

@better-auth/core

What changed in @better-auth/core 1, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.

48 breaking35 security2 deprecations48 new APIs and options4 performance22 behavior and defaults61 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli on npm

@better-auth/core 1220 changes

Breaking changes 48

  • IPv6 addresses are public only within global unicast 2000::/3, except NAT64 addresses whose embedded IPv4 address is public; other previously public-classified ranges are reserved.

    1.7.26release notes

  • Introspected active tokens that fail configured aud, iss, exp, or nbf checks now produce a 401 UNAUTHORIZED error instead of a plain Error that can lead resource servers to answer with a 500.

    1.7.22release notes

  • With serial ID generation, filtering an id or reference field with null now compares it with null instead of converting null to 0.

    1.7.21release notes

  • For a non-loopback HTTP issuer configured with baseURL or jwt.issuer, discovery and the iss authorization response parameter now report the configured issuer instead of rewriting it to HTTPS.

    1.7.20release notes

  • Client registration and updates now reject post-logout redirect URIs containing credentials, matching the existing rule for redirect URIs.

    1.7.20release notes

  • When an authorization request uses a registered HTTP redirect URI rejected by the HTTPS policy, the error is shown on the server error page rather than redirected to that URI.

    1.7.20release notes

  • getAccessToken and refreshToken now fail when a provider refuses a token refresh with a 200 status, rather than returning the expired access token.

    1.7.19release notes

  • Account linking and new OAuth users count email as verified only when the provider claim is true or the string "true"; other values read as unverified.

    1.7.16release notes

  • Direct ID-token sign-in and linking resolve the profile from the verified ID token only, ignoring submitted access or refresh tokens.

    1.7.16release notes

  • Generic OAuth providers with a discovery document containing jwks_uri reject profiles whose sub differs from the ID token's sub.

    1.7.16release notes

  • Built-in social providers no longer follow HTTP redirects on token exchange, refresh, verification, and JWKS requests, matching other server-side OAuth requests.

    1.7.15release notes

  • Rejects ID tokens when the provider has no client ID, so their audience can be checked. Set clientId to every client ID your apps sign in with.

    1.7.12release notes

  • ID tokens missing exp or iat are now rejected.

    1.7.12release notes

  • Custom Paybin issuers must expose RS256 signing keys at the issuer's JWKS endpoint.

    1.7.11release notes

  • A key-set fetch taking longer than 5 seconds now fails with a JWKSTimeout error instead of waiting indefinitely.

    1.7.10release notes

  • Unreachable key sets now throw errors instead of making tokens appear invalid; with remoteVerify configured, failures no longer fall back to remote introspection.

    1.7.10release notes

  • Microsoft ID-token verification treats signing keys without an alg field as RS256 and rejects Microsoft ID tokens signed with any other algorithm.

    1.7.8release notes

  • Refuses to apply changes when required columns that Better Auth never writes need manual repair.

    1.7.3release notes

  • Initialization checks schema objects and models, reports missing tables or columns and required unwritten columns, and authentication requests await the check and are rejected if the schema does not match.

    1.7.3release notes

  • The account issuer requirement introduced in 1.7.0 is removed; upgrades from 1.6 no longer require an account schema migration, though databases with the 1.7.0–1.7.2 schema need cleanup.

    1.7.3release notes

  • The resource-request input type is renamed to ResourceRequestInput.

    1.7.0release notes

  • Account identity is now unique by issuer and accountId, so aliases for one OIDC issuer deduplicate while equal subjects from different issuers remain separate; a reviewed backfill is required.

    1.7.0release notes

  • Run a schema migration to add the confirmation column to access-token and refresh-token tables for DPoP token binding.

    1.7.0release notes

  • The synchronous OAuth2 request builder is removed; use the async authorizationCodeRequest helper instead.

    1.7.0release notes

  • Replace the experimental joins setting with advanced.database.joins.

    1.7.0release notes

  • Providers declare an idToken configuration for shared signature, issuer, audience, and nonce verification; providers without one reject client-submitted id_token sign-in.

    1.7.0release notes

  • Rejects deprecated IPv4-compatible IPv6, the 6to4 relay anycast prefix, and deprecated site-local IPv6 addresses so SSRF gates reject these non-public hosts.

    1.7.0release notes

  • OAuth client JWKS metadata must now be an RFC 7517 JWK Set object with a non-empty keys array, including remotely fetched jwks_uri responses.

    1.7.0release notes

  • SSO account subjects now come from protocol-defined OIDC sub or signed SAML NameID claims, so mapping.id is removed.

    1.7.0release notes

  • The mapper can no longer return id; read the selected provider identity from accountInfo.account.accountId instead of accountInfo.user.id.

    1.7.0release notes

  • The Generic OAuth helper now requires a concrete tenant GUID; use the built-in Microsoft provider for multi-tenant authorities.

    1.7.0release notes

  • Microsoft sign-in now identifies Entra accounts using the stable oid claim and rejects tokens without a valid oid; existing Microsoft account rows created from sub must be migrated.

    1.7.0release notes

  • SCIM is replaced with provisioning into application-defined domains, including Users, Groups, direct memberships, validated custom-role projections, and SCIM 2.0 features; existing installations require full directory reprovisioning.

    1.7.0release notes

  • The raw-token verifier is renamed to verifyBearerToken and rejects DPoP-bound tokens; use verifyAccessTokenRequest on endpoints that may receive them.

    1.7.0release notes

  • Custom UpstreamProvider implementations replace the removed verifyIdToken method with an idToken config.

    1.7.0release notes

  • Returns null when no row matches or when called without a predicate. Kysely MySQL guarded updates and Prisma guarded updates now follow this behavior; use updateMany for intentional bulk updates.

    1.6.21release notes

  • Rate limiting no longer trusts multi-hop X-Forwarded-For chains. Set trusted proxy IPs or CIDR ranges to identify the real client by walking the chain right to left and skipping trusted hops.

    1.6.21release notes

  • Rejects redirect and callback targets that are not in trustedOrigins.

    1.6.17release notes

  • Rate limiting is enforced even when a client IP cannot be determined, instead of being skipped.

    1.6.17release notes

  • Rejects additional reserved IPv6 ranges.

    1.6.17release notes

  • Opaque access tokens are checked through Facebook's debug_token endpoint for validity, a configured client ID, and a matching profile user ID. Access-token sign-in now requires a client secret.

    1.6.16release notes

  • When configured, the hosted-domain option must match the verified ID token and decoded callback profile; otherwise sign-in is rejected.

    1.6.16release notes

  • Reddit no longer uses the OAuth application ID as a user's email or marks it verified. It uses the mapped email when provided, otherwise a unique synthetic address; provide a real email through mapProfileToUser.

    1.6.16release notes

  • Remote introspection now rejects tokens when a required audience is missing or mismatched, rather than skipping audience validation when the response omits aud.

    1.6.16release notes

  • Rejects redirect URIs that contain a fragment component, per RFC 6749 §3.1.2.

    1.6.14release notes

  • Validates options at construction; unsupported algorithms, missing JWK key material, or disagreement between explicit and JWK algorithms now throw eagerly.

    1.6.13release notes

  • Redirect URI validation uses a try/catch parsing fallback instead of URL.canParse and rejects URIs containing fragments.

    1.6.13release notes

  • Providers reject empty arrays, empty strings, and missing configuration at sign-in time; Google, Apple, and Facebook also require clientSecret, while Microsoft Entra and Cognito require only clientId.

    1.6.7release notes

Security 35

  • Replay reservations last one second past the proof's accepted window, preventing reuse during the final second; this applies to in-memory, database, and secondary-storage stores.

    1.7.26release notes

  • Kakao sign-in now uses PKCE, sending a code challenge in the authorization request and a verifier in the token request.

    1.7.26release notes

  • Used proofs are recorded in secondary storage, so DPoP works when verification values are stored there and replayed proofs remain rejected across instances.

    1.7.25release notes

  • Failed fallback join queries are reported only through the configured logger, avoiding raw database errors with SQL and bound values being printed to the console.

    1.7.19release notes

  • Accepts { cause } as a third argument, preserving the underlying error for server-side callers without exposing it in the response.

    1.7.12release notes

  • A custom Facebook getUserInfo no longer receives client-submitted access tokens issued to another Facebook app.

    1.7.12release notes

  • Twitch and Paybin sign-in verify ID token signatures and identity claims before mapping profiles, with 30 seconds of clock tolerance.

    1.7.11release notes

  • When session revocation is requested, password changes and resets save the password and revoke database sessions in one transaction when supported. onPasswordReset runs after sessions are revoked; secondary-storage removal remains best-effort after commit.

    1.7.8release notes

  • Single-use checks work with advanced.database.generateId: "uuid" on SQLite and MySQL; SAML assertions, DPoP proofs, and client assertions are accepted only once on Postgres and MongoDB. With "serial", Better Auth warns that these checks need string IDs.

    1.7.8release notes

  • Token requests use OAuth-compliant Basic authentication and add redirect protection.

    1.7.3release notes

  • @better-auth/drizzle-adapter: Concurrent requests can exceed rate limits on PostgreSQL

    1.7.0security advisory

  • CIMD follows shared-cache freshness rules, prefers s-maxage, conditionally revalidates, and fails closed when freshness is ambiguous.

    1.7.0release notes

  • This helper converts insufficient-scope signals and recognized token failures into safe RFC 6750 challenges.

    1.7.0release notes

  • Node.js deployments can import a secure transport that resolves once, rejects non-public DNS answers, pins the approved connection, and returns redirects and bodies without buffering.

    1.7.0release notes

  • CIMD fetches can be governed by coalescing, pacing, concurrency limits, and rolling 60-second budgets to bound metadata request amplification.

    1.7.0release notes

  • OAuth providers can opt in to withholding sessions for unverified provider emails; callback, ID token, and One Tap flows return the documented errors.

    1.7.0release notes

  • This provisioning gate can reject an identity before user creation or account linking, and revalidates returning OAuth or SSO sign-ins with fresh provider profile data.

    1.7.0release notes

  • Resource servers can verify DPoP requests, including the Authorization scheme, proof, request target, access-token hash, and replay; it uses a database-backed verification store by default.

    1.7.0release notes

  • Apple OAuth authorization now sends PKCE code challenges so callback token exchanges include a matching code verifier.

    1.6.25release notes

  • @better-auth/scim: account takeover and stale access via SCIM provider-id collision

    1.6.22security advisory

  • HTTP redirects are refused for server-side OAuth token exchange, token refresh, client-credentials, token introspection, and JWKS requests, preventing redirects to unintended internal addresses.

    1.6.22release notes

  • @better-auth/stripe: cross-organization billing tampering in organization subscription actions

    1.6.21security advisory

  • Applies the configured Google hosted-domain restriction before creating a session.

    1.6.21release notes

  • Google reCAPTCHA and Cloudflare Turnstile accept this optional setting to reject tokens minted for a different hostname.

    1.6.17release notes

  • Google reCAPTCHA and Cloudflare Turnstile accept this optional setting to reject tokens minted for a different action.

    1.6.17release notes

  • Adds an atomic single-use marker operation so exactly one concurrent caller succeeds; database-backed verification storage is atomic, while secondary-storage-only verification is best-effort.

    1.6.17release notes

  • Concurrent requests can no longer slip past the configured limit, enforcement is no longer skipped when a client IP cannot be determined, and the in-memory store no longer grows without bound; the database backend removes expired entries automatically.

    1.6.17release notes

  • Malformed redirect parameters now return a 400 instead of a 500.

    1.6.17release notes

  • Microsoft Entra ID sign-in now enforces tenant restrictions: organizations rejects personal accounts, and consumers rejects work and school accounts.

    1.6.17release notes

  • The cache is scoped per JWKS source and honors a TTL, preventing keys from another source from being reused and ensuring rotated or removed keys stop being used after the TTL.

    1.6.16release notes

  • Direct sign-in now cryptographically verifies ID tokens using PayPal's issuer and JWKS or the client secret, checks the configured client ID as audience, bounds token age, and checks the nonce when supplied.

    1.6.16release notes

  • OAuth provider plugins now parse URLs with a try/catch fallback instead of URL.canParse, avoiding failures or disabled dangerous-scheme checks on some supported runtimes.

    1.6.14release notes

  • Per-request authorization parameters are accepted by signIn.social, linkSocial, and signIn.sso; reserved security-sensitive keys are rejected or filtered.

    1.6.13release notes

  • Direct callers receive the same validation for unsupported algorithms, missing JWK key material, and algorithm disagreement.

    1.6.13release notes

  • OAuth 2.1 Provider: Unprivileged users can register OAuth clients

    1.6.5security advisory

Deprecations 2

  • The existing option is deprecated but remains supported for backward compatibility.

    1.7.13release notes

  • Remains available as a deprecated compatibility API.

    1.7.2release notes

New APIs and options 48

  • clientId accepts an array to include the native app key for Kakao ID token sign-in.

    1.7.26release notes

  • Social providers can return values for fields declared in account.additionalFields; Better Auth saves them when an account is created, linked, or updated at sign-in.

    1.7.26release notes

  • The function now accepts the auth context and picks the same storage.

    1.7.25release notes

  • Accepts an optional headers input for providers that need extra headers on access-token refresh; client authentication headers take precedence.

    1.7.21release notes

  • Allows controlled origins to use HTTP redirect URIs, including localhost callbacks during development; without it, redirect URI validation is unchanged.

    1.7.20release notes

  • The Cloudflare provider accepts tokenEndpointAuth with a method field for configuring token endpoint authentication.

    1.7.13release notes

  • The Vercel social provider can configure token endpoint authentication, including dynamic OIDC tokens and private key JWT client assertions, without replacing the built-in sign-in flow.

    1.7.13release notes

  • This option lets dynamic registration infer native when application_type is omitted and a custom-scheme redirect URI is present, or treat omitted application_type as native. The default remains web.

    1.7.8release notes

  • Adds a schema option for direct PostgreSQL connections; the adapter and CLI qualify statements with it, and auth generate creates the schema before its tables.

    1.7.5release notes

  • Add an option to disable Better Auth OpenTelemetry span creation per auth instance; instrumentation remains enabled by default and independent of usage reporting.

    1.7.4release notes

  • Cloudflare is available as a built-in social provider, supporting client-secret authentication and PKCE clients without a secret.

    1.7.3release notes

  • Providers that require non-standard request parameters can use a custom strategy to authenticate token endpoint requests.

    1.7.3release notes

  • Provides synchronous access to the current auth endpoint context.

    1.7.2release notes

  • Provides optional access to the current auth endpoint context.

    1.7.2release notes

  • Account-specific APIs use accountId to select the local Account.id; token and provider-profile APIs can select the signed account cookie with useAccountCookie.

    1.7.0release notes

  • signIn.social, linkSocial, and signIn.sso accept per-request authorization URL parameters; Generic OAuth merges them with configured parameters, with call-time values winning collisions.

    1.7.0release notes

  • Use this helper when an operation determines its required scopes dynamically.

    1.7.0release notes

  • This helper signs RFC 7523 assertions from a private key, with client ID, token endpoint, and grant type supplied to the assertion getter.

    1.7.0release notes

  • Set this option to true to keep sign-out local instead of logging out from the configured provider.

    1.7.0release notes

  • Resources can require DPoP-bound access tokens.

    1.7.0release notes

  • Enables providers that initiate OAuth without a state parameter; stateless callbacks restart the flow server-side with fresh state and PKCE.

    1.7.0release notes

  • Manual SAML configurations without metadata XML must set this IdP identity; samlConfig.issuer identifies the service provider instead.

    1.7.0release notes

  • The Google provider option controls whether include_granted_scopes=true is included in the authorization URL; it defaults to true, and call-time additionalParams can override it.

    1.7.0release notes

  • Provide this function to define hierarchical scope policies instead of the default exact membership check.

    1.7.0release notes

  • The Microsoft Entra ID social provider supports clientAssertion.

    1.7.0release notes

  • The exported header set lets developers add no-store and no-cache headers to hand-built credential-bearing responses.

    1.7.0release notes

  • Generic OAuth refresh requests can include extra body parameters through an object or sync/async function; grant_type and refresh_token cannot be overridden.

    1.7.0release notes

  • Protected MCP scopes can be configured so missing scopes produce an RFC 6750 insufficient_scope challenge naming every missing scope.

    1.7.0release notes

  • Opt-in JWKS-backed asymmetric JWT support lets services verify session cookie-cache tokens with public keys instead of shared secrets.

    1.7.0release notes

  • Plugin database schemas can define named or generated indexes spanning multiple fields, with consistent configured table and column names across migrations and adapters.

    1.7.0release notes

  • Generic OAuth providers can configure token endpoint authentication using private_key_jwt, none, client_secret_basic, or client_secret_post.

    1.7.0release notes

  • The method accepts an optional second context argument, allowing refresh implementations to access request metadata.

    1.7.0release notes

  • Adds a utility for creating stable, namespaced placeholder emails on the reserved placeholder.invalid domain.

    1.6.26release notes

  • Custom ID token verifiers receive the request endpoint context as a third argument, allowing them to read request headers.

    1.6.24release notes

  • Custom rate-limit storage may implement this optional method for strict enforcement; without it, previous behavior remains and a one-time warning is logged.

    1.6.17release notes

  • Adds an optional adapter method that atomically applies signed numeric deltas to one guarded row and returns the updated row or null; adapters without native support use a transaction-based fallback.

    1.6.17release notes

  • Adds an optional method that atomically increments a counter and sets its time-to-live only when the key is first created.

    1.6.17release notes

  • Set this flag to opt back into accepting remote introspection responses that omit aud; mismatching audiences are still rejected.

    1.6.16release notes

  • GenericOAuthConfig and SSO OIDCConfig can enable stateless callbacks; the server restarts the OAuth flow with fresh state and PKCE.

    1.6.13release notes

  • Core OAuth2 exports a decoder that follows RFC credential parsing rules, including case-insensitive scheme handling and optional spaces.

    1.6.13release notesrelease notes

  • Core OAuth2 exports an RFC 6749-compliant helper for encoding client credentials containing reserved characters.

    1.6.13release notesrelease notes

  • Cognito exposes a typed option that maps to the identity_provider authorization query parameter.

    1.6.13release notesrelease notes

  • linkSocial now accepts loginHint, matching the signIn.social and signIn.sso request surfaces.

    1.6.13release notesrelease notes

  • The input contract gains additionalParams, which built-in providers forward to the shared authorization URL helper.

    1.6.13release notes

  • Accepts an array of Client IDs for Google, Apple, Microsoft Entra, Facebook, and Cognito; the first is used for authorization code flow and all are accepted for ID-token audience verification.

    1.6.7release notes

  • Exports a helper from @better-auth/core/oauth2 that returns the primary Client ID for the authorization code flow.

    1.6.7release notes

  • Adds shared host-classification utilities for loopback, public-routable, and other host checks.

    1.6.6release notes

  • Adds a bounded-concurrency utility, available from @better-auth/core/utils/async.

    1.6.6release notes

Performance 4

  • The default in-memory store no longer scans every proof in the replay window, preventing per-request CPU time from growing with request rate.

    1.7.25release notes

  • The semantic conventions production dependency was removed, reducing installation size while preserving instrumentation attribute keys.

    1.7.11release notes

  • An unknown kid triggers at most one key-set refetch every 30 seconds per server process, and concurrent verifications share that fetch, limiting requests caused by made-up key IDs.

    1.7.10release notes

  • Request IP validation is faster.

    1.7.3release notes

Behavior and default changes 22

  • Kakao ID tokens from native SDKs can now be passed to signIn.social.

    1.7.26release notes

  • Official packages now accept any better-call 1.4 patch release from 1.4.5 as a peer dependency.

    1.7.24release notes

  • Exports the runtime detection used by the package; telemetry now reports Cloudflare Workers as workerd instead of node when nodejs_compat is enabled.

    1.7.21release notes

  • With remoteVerify, active introspection tokens are accepted; local typ verification applies only when jwksUrl is set and remoteVerify.force is not true.

    1.7.18release notes

  • Native OAuth clients and Client ID Metadata Documents can use custom-scheme redirect URIs with a host and path; pairwise clients cannot use these host-bearing URIs.

    1.7.8release notes

  • ID token verification allows 30 seconds of clock difference for exp, nbf, and iat, including tokens up to 30 seconds past exp. Custom verifyIdToken implementations must set their own tolerance.

    1.7.8release notes

  • Schema validation is enabled by default, including in production; set this option to false to disable runtime validation.

    1.7.3release notes

  • Relative callback and redirect URLs can use standard path, query, and fragment syntax while preserving open-redirect protections.

    1.7.2release notes

  • Database joins are now a stable option, disabled by default; enabled adapters use native joins when possible and otherwise fall back to additional queries.

    1.7.0release notes

  • Generic OAuth sign-out can redirect to a configured or discovered provider logout endpoint and include id_token_hint when available; local-only behavior remains configurable.

    1.7.0release notes

  • When configured, OAuth redirect_uri values are built from the current request base URL, supporting multi-host deployments.

    1.7.0release notes

  • Custom OAuthProvider implementations can omit callbackPath when using the shared /callback/<provider-id> route.

    1.7.0release notes

  • Unknown draft-02 metadata members are ignored and never persisted; recognized secrets, privilege fields, and server controls remain fatal.

    1.7.0release notes

  • The helper now forwards resource values to refresh-token requests, supporting RFC 8707 resource indicators.

    1.7.0release notes

  • Google sign-in accepts hd: "*" to allow any Google Workspace hosted domain, while still rejecting tokens with no hosted-domain claim.

    1.6.21release notes

  • The email field is now optional.

    1.6.8release notes

  • The email field is now optional.

    1.6.8release notes

  • The email field is now optional.

    1.6.8release notes

  • The email_verified field is now optional.

    1.6.8release notes

  • OAuth providers that may omit email can now be unblocked by synthesizing an email inside mapProfileToUser; sign-in still rejects if no email is produced.

    1.6.8release notes

  • The email field is now optional.

    1.6.8release notes

  • The package is now an optional peer dependency.

    1.6.6release notes

Fixes and other changes 61

  • Authorization URLs preserve empty query segments, while Better Auth's parameters continue to replace matching endpoint values.

    1.7.26release notes

  • IPv6 addresses with dotted IPv4 tails are no longer misread as IPv4-mapped; the classifier rejects them as reserved, and IP normalization and CIDR matching expand the tail into two hex groups.

    1.7.26release notes

  • The well-known NAT64 block is public when it embeds a public IPv4 address and reserved otherwise, enabling outbound checks for DNS64-resolved names with only an A record.

    1.7.26release notes

  • Existing query text on the authorization endpoint is kept unchanged; parameters set by Better Auth still replace endpoint parameters with the same name.

    1.7.25release notes

  • Reads signing keys from the auth instance instead of its own /jwks request, avoiding failures on runtimes that block requests to their own hostname; set jwksUrl to keep fetching keys over HTTP.

    1.7.23release notes

  • Error descriptions are fitted to the characters allowed by RFC 6750, preventing challenge creation from throwing; invalid scope tokens in challengeScopes still throw.

    1.7.22release notes

  • Session retrieval no longer fails when a user.additionalFields entry references a table outside the Better Auth schema, including with database joins enabled on Drizzle and Prisma.

    1.7.22release notes

  • A 401 Bearer challenge for a token that failed verification now includes error="invalid_token" and an error_description; requests without a token still get no error code.

    1.7.22release notes

  • Generic OAuth providers now send authorizationHeaders when refreshing an access token, not only when exchanging the authorization code.

    1.7.21release notes

  • Client authentication replaces extra headers with names differing only in case, including headers set by a custom tokenEndpointAuth hook, preventing invalid combined headers on code exchange and refresh.

    1.7.21release notes

  • Authentication requests no longer hang if the request that started schema validation ends before validation finishes; each Workers request runs its own schema lookup until one completes.

    1.7.21release notes

  • On Prisma with MongoDB, magic link and email OTP sign-in for users with an unverified email no longer fail with a Malformed ObjectID 500; SAML sign-in, DPoP-bound OAuth requests, and private_key_jwt client authentication are fixed the same way.

    1.7.21release notes

  • Sign-In with Ethereum now keeps the email the user supplied instead of a placeholder.

    1.7.21release notes

  • The Zoom social provider now applies this configured provider option for Zoom sign-ins.

    1.7.16release notes

  • Kakao sign-in now passes loginHint to Kakao, pre-filling the ID field on the Kakao Account login page.

    1.7.14release notes

  • Fixes typechecking under exactOptionalPropertyTypes when the function returns undefined for name, email, or image.

    1.7.12release notes

  • Restores the pre-1.7.11 handling so account info does not fail after the ID token stored at sign-in expires.

    1.7.12release notes

  • Plugins whose init returns options: undefined now typecheck when exactOptionalPropertyTypes is enabled.

    1.7.11release notes

  • On adapters without transactions enabled, after hooks for writes that remain persisted now run even when the request fails after writing data.

    1.7.8release notes

  • With storeSessionInDatabase enabled and preserveSessionInDatabase disabled, cache eviction no longer causes valid device sessions to disappear or automatic session switching to fail.

    1.7.8release notes

  • When passed a client on a replica set, the adapter retries conflicting transactions for up to 120 seconds or until MongoClient timeoutMS. Retried work can repeat, including databaseHooks before hooks and work outside the database before commit.

    1.7.8release notes

  • Sign-up no longer leaves a secondary-storage session after a failed commit. Session listing reads the database in the specified storage configuration; other specified flows keep session writes in their transaction so storage failure rolls back related records.

    1.7.8release notes

  • SIWE sign-in now uses the supplied email when no other account has it, rather than always using the wallet-derived address.

    1.7.8release notes

  • Preserves logical model identity when a custom model name matches another schema key.

    1.7.6release notes

  • Restores database option type inference for projects that do not use Cloudflare Workers.

    1.7.5release notes

  • Bundlers such as Metro no longer fail when the optional OpenTelemetry API is not installed.

    1.7.4release notes

  • Accounts are identified by (providerId, accountId), restoring sign-in compatibility with 1.6 databases without an account schema migration; ambiguous keys are rejected.

    1.7.3release notes

  • For Prisma clients whose model metadata omits nullability, the command reads the existing Prisma schema to report required fields Better Auth never writes.

    1.7.3release notes

  • Custom database adapters may omit this method again; guarded fallbacks require atomic conditional writes and accurate affected-row counts.

    1.7.3release notes

  • Custom database adapters may omit this method again; fallback increments require atomic conditional writes and accurate affected-row counts and can fail when contention exhausts retries.

    1.7.3release notes

  • Authorization code and refresh token requests are improved, including PKCE parameter handling.

    1.7.3release notes

  • Sign-in and token refresh now work when configured with the documented clientKey and clientSecret options.

    1.7.3release notes

  • Prevents async context loss in Cloudflare Workers bundles that enable multiple runtime conditions.

    1.7.2release notes

  • Logs emitted while handling auth requests respect the configured custom logger, log level, and disabled setting.

    1.7.2release notes

  • Built-in placeholder emails consistently use the namespaced {identifier}@{namespace}.placeholder.invalid format.

    1.7.2release notes

  • Previously granted OAuth scopes are preserved across re-authentication and refresh-token requests; new scopes are merged through linkSocial, and narrower provider claims no longer shrink the stored value.

    1.7.0release notes

  • One Tap, Electron, and Expo client plugins compose without TypeScript errors, while preserving each plugin's inferred actions.

    1.7.0release notes

  • The DPoP algorithm option uses signingAlgorithms everywhere.

    1.7.0release notes

  • Deferred database side effects run only after a successful transaction, preventing rolled-back updates from refreshing cached profiles or invalidating sessions.

    1.7.0release notes

  • Prevents concurrent cold-start requests from intermittently losing authentication or transaction context.

    1.6.30release notes

  • Aligned context types with runtime route parameters, so endpoint and middleware code can reflect the parameters available at runtime.

    1.6.27release notes

  • Response headers are preserved when resolving sessions from endpoint contexts.

    1.6.27release notes

  • Concurrent first-callers now share a memoized in-flight initialization, preventing request-state mismatches on serverless cold starts.

    1.6.24release notes

  • Plugin schema tables flagged with disableMigration: true are skipped by better-auth generate for Drizzle and Prisma output and by the runtime migrator.

    1.6.21release notes

  • Inherited APIError properties are now declared to fix TypeScript inference errors.

    1.6.20release notes

  • Calling incrementOne without increment or set now reports a clear error.

    1.6.19release notes

  • Single-use verification flows no longer hang on database adapters that use a one-connection pool, fixing magic-link verification and similar token checks in connection-limited serverless database setups.

    1.6.19release notes

  • Fixes plugin-provided client methods and additional session fields not being inferred in composite monorepos.

    1.6.18release notes

  • When baseURL is unset, password-reset and verification links use the current request's host rather than the host of the server's first request.

    1.6.17release notes

  • Fixes a memory leak that caused the cache to grow on every access token verification.

    1.6.17release notes

  • Users without email receive a non-routable, unverified placeholder address on reddit.invalid instead of one on the real reddit.com domain; mapProfileToUser can supply a real email.

    1.6.17release notes

  • A request-scoped trustedOrigins callback no longer affects other concurrent requests.

    1.6.17release notes

  • Sign-in now succeeds with the documented default setup despite WeChat returning no email; the user receives a stable, unverified placeholder email, and mapProfileToUser can supply a real one.

    1.6.17release notes

  • When OpenTelemetry is not installed, Cloudflare Workers instrumentation imports are routed to a pure no-op entry.

    1.6.10release notes

  • The adapter factory self-references ./instrumentation so the exports map routes edge and browser environments to the pure variant.

    1.6.9release notes

  • The email field is now typed as string or null and is optional when the email scope is not granted.

    1.6.8release notes

  • The email_verified field is now optional because Meta's Graph API does not include it.

    1.6.8release notes

  • The email field is now typed as string or null.

    1.6.8release notes

  • Preserves accumulated Set-Cookie headers when an endpoint throws APIError, so cookie side-effects are not discarded on the error path.

    1.6.7release notes

  • Serves a noop instrumentation module under browser and edge conditions, matching ./async_hooks.

    1.6.7release notes

  • Redirect APIErrors are no longer recorded as span errors in OpenTelemetry traces.

    1.6.0release notes