unstale

npm / better-auth

better-auth

What changed in better-auth 1, from its official release notes, upgrade guides and advisories. Also covers @better-auth/api-key, @better-auth/cimd, @better-auth/electron, @better-auth/expo, @better-auth/i18n, @better-auth/mcp, @better-auth/oauth-provider, @better-auth/passkey, @better-auth/redis-storage, @better-auth/scim, @better-auth/sso, @better-auth/stripe, auth. Sources checked 2026-11-30.

228 breaking239 security10 deprecations252 new APIs and options14 performance55 behavior and defaults8 tooling708 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 11514 changes

Breaking changes 228

  • Non-global IPv6 addresses outside 2000::/3 are rejected as reserved rather than treated as public.

    1.7.26release notes

  • OAuth resource servers return a DPoP insufficient_scope challenge, rather than Bearer, when a DPoP request lacks a required scope.

    1.7.23release notes

  • SCIM apps on adapters without native transactions no longer fail at startup; /scim/v2 requests return 501 Not Implemented, so provisioning requires an adapter with native transactions.

    1.7.21release notes

  • CLI prompts in CI or without a terminal now exit with code 2 and identify what is needed, such as --yes; prompts go to stderr.

    1.7.19release notes

  • Canceled or failed runs now use nonzero exit codes: cancellation exits with 130, and failures such as missing config or failed setup exit with 1.

    1.7.19release notes

  • Expo social sign-in now rejects authorization URLs without a state parameter when OAuth state is stored in a cookie.

    1.7.17release notes

  • Desktop authorization codes are now bound to the browser session that issued them.

    1.7.16release notes

  • Generic OAuth profiles are now bound to the ID token subject.

    1.7.16release notes

  • Pending invitations are limited to members who can manage them.

    1.7.16release notes

  • Sign-up and sign-in reject phoneNumber in the request, and social profiles no longer set unverified numbers, preventing unverified phone numbers from being stored.

    1.7.16release notes

  • Sign-up and update-user requests no longer set this field; server code using auth.api.updateUser must write it through the database adapter instead.

    1.7.16release notes

  • The /admin/update-user endpoint now requires this permission to change phone numbers; add set-phone to custom access control statements.

    1.7.16release notes

  • userVerification: "required" is now enforced for authentication as well as registration.

    1.7.16release notes

  • The admin update-user endpoint rejects data.id with a 400 error instead of attempting to change the user's primary key.

    1.7.15release notes

  • Type declarations no longer list type-only exports as values, so value imports fail type checking instead of at runtime.

    1.7.13release notes

  • Sign-in now rejects ID tokens when the provider has no client ID because their audience cannot be checked.

    1.7.12release notes

  • ID tokens missing exp or iat are now rejected.

    1.7.12release notes

  • JWTs and session cookie-cache JWTs are verified using the stored key's algorithm rather than the token header's; signing or verifying without an issuer or audience now warns.

    1.7.12release notes

  • OAuth callbacks through the proxy now run the standard callback checks, including issuer and ID token nonce validation.

    1.7.12release notes

  • Sign-in now rejects ID tokens missing exp or iat and providers with an empty client ID, matching social sign-in.

    1.7.12release notes

  • The function now accepts only OAuth access tokens and rejects JWT plugin session JWTs, even when issuer and audience match.

    1.7.12release notes

  • Inferred output schema types no longer include custom fields that are not returned.

    1.7.8release notes

  • OIDC SSO providers whose configured issuer does not match discovery are rejected to prevent later sign-in failures.

    1.7.8release notes

  • Passwords exceeding this limit are rejected with PASSWORD_TOO_LONG before hashing or verification.

    1.7.6release notes

  • Adds schema diagnostics and blocks migrations when required columns that Better Auth never writes need manual repair.

    1.7.3release notes

  • Schema validation now runs during initialization by default, including in production, and authentication requests are rejected when mismatches are detected.

    1.7.3release notes

  • Client types with more plugins are no longer assignable to types declaring fewer plugins.

    1.7.2release notes

  • Accounts are keyed by trusted issuer and account ID and now require Account.issuer; update provider identity reads and SSO configuration, then apply the account-identity backfill.

    1.7.0release notes

  • Accounts are keyed by issuer and accountId, and Account.issuer is now required; existing account identity data needs a backfill.

    1.7.0release notes

  • Read provider identity from accountInfo.account.accountId following the account identity change.

    1.7.0release notes

  • ID tokens now carry acr: "0", and discovery advertises only "0".

    1.7.0release notes

  • Database joins moved from experimental.joins to the stable advanced.database.joins option; regenerate Drizzle or Prisma schemas to include required relations.

    1.7.0release notes

  • Database joins moved from experimental to the stable advanced.database.joins option; regenerate Drizzle and Prisma schemas to include required relations.

    1.7.0release notes

  • With dynamic baseURL, the auth origin is resolved from Host by default; enable trustedProxyHeaders when the public hostname is available only through x-forwarded-host.

    1.7.0release notes

  • The option now defaults to false; set saml.allowIdpInitiated: true to continue accepting unsolicited SAML responses.

    1.7.0release notes

  • OAuth callbacks now use this route.

    1.7.0release notes

  • MCP OAuth client metadata now requires applicationType and nullable clientDiscoveryId; deduplicate client-resource links before adding the compound unique index, and remove legacy columns.

    1.7.0release notes

  • OAuth client registration schema now requires an applicationType column; migrate and drop the legacy type and public columns.

    1.7.0release notes

  • The Electron sign-in flow enforces S256 PKCE and hardened custom-scheme origin checks; upgrade client and server together and add the app scheme to trustedOrigins.

    1.7.0release notes

  • The MCP plugin moved into its own package; install it and @better-auth/cimd, add the required jwt() plugin, and migrate the documented API and schema changes.

    1.7.0release notes

  • Use @better-auth/oauth-provider for OIDC authorization-server integrations previously using oidcProvider.

    1.7.0release notes

  • Captcha endpoint entries must match full auth paths; use explicit wildcards instead of partial paths.

    1.7.0release notes

  • Authorization requests using the claims parameter must include the openid scope.

    1.7.0release notes

  • Replaced by per-client clientCredentialsScopes.

    1.7.0release notes

  • Replaces clientCredentialGrantDefaultScopes with per-client clientCredentialsScopes.

    1.7.0release notes

  • Replace clientCredentialGrantDefaultScopes with per-client clientCredentialsScopes and backfill clients with audited machine scopes.

    1.7.0release notes

  • OAuth client registration schema adds a nullable clientDiscoveryId column; migrate and drop the legacy type and public columns.

    1.7.0release notes

  • The code_challenge_method parameter is removed from the Electron sign-in flow.

    1.7.0release notes

  • Custom rate-limit storage makes one consume decision per request.

    1.7.0release notes

  • Custom adapters must implement native consumeOne; read-then-delete fallbacks are removed to prevent concurrent requests racing past single-use guards.

    1.7.0release notes

  • customAccessTokenClaims now receives a resources array instead of a resource string.

    1.7.0release notes

  • Custom ID token claim sources can no longer set reserved OIDC protocol claims; use namespaced custom claims instead.

    1.7.0release notes

  • Device flow endpoints enforce RFC 8628 request cardinality and client authentication.

    1.7.0release notes

  • A unique lookup index was added; resolve duplicates before migration, and use bounded strings on MySQL and SQL Server.

    1.7.0release notes

  • The disableOriginOverride option is removed from the Electron sign-in flow.

    1.7.0release notes

  • The response now includes a method discriminant, and OTP enrollment uses method: "otp" and requires otpOptions.sendOTP.

    1.7.0release notes

  • The genericOAuthClient() API is dropped.

    1.7.0release notes

  • Drop this client plugin when migrating generic OAuth to the first-class social provider.

    1.7.0release notes

  • Now returns a promise because Expo secure storage uses async access.

    1.7.0release notes

  • Per-issuance ID token claims can no longer set reserved OIDC protocol claims; use namespaced custom claims instead.

    1.7.0release notes

  • Custom adapters must implement native incrementOne; read-then-update fallbacks are removed to prevent concurrent requests racing past rate-limit guards.

    1.7.0release notes

  • Removed in favor of OIDC discovery when migrating to the first-class social provider.

    1.7.0release notes

  • The generic OAuth issuer option is removed in favor of OIDC discovery.

    1.7.0release notes

  • Use linkSocial() in place of oauth2.link() for linking a social account.

    1.7.0release notes

  • Remove mapping.id from SSO configurations.

    1.7.0release notes

  • Authorization requests now enforce max_age by requiring reauthentication when the user's authentication is too old; auth_time reflects the fresh login.

    1.7.0release notes

  • mcp() requires an explicit resource identifier; replace validAudiences with resources and generate and apply the migration.

    1.7.0release notes

  • mcp() no longer enables unauthenticated dynamic client registration; compose it with cimd() or explicitly enable both DCR flags.

    1.7.0release notes

  • Pass method: "otp" to enroll with OTP; the enableTwoFactor response also uses method to discriminate OTP and TOTP results.

    1.7.0release notes

  • Microsoft Entra accounts are identified by the stable oid claim; migrate existing rows created from sub, and tokens without a valid oid are rejected.

    1.7.0release notes

  • Client registration and metadata were aligned with MCP authorization 2026-07-28; migration adds applicationType and clientDiscoveryId and removes legacy columns.

    1.7.0release notes

  • The OAuth integration replaces the optional resource column with oauthClientId and resources; regenerate and apply the schema.

    1.7.0release notes

  • Validation failures return RFC-compliant OAuth error envelopes; authorization errors redirect to a registered trusted client URI with state and iss.

    1.7.0release notes

  • OAuth protected resources are modeled explicitly with per-resource TTLs, scopes, claims, and signing pins.

    1.7.0release notes

  • Token and refresh requests may only narrow the authorization's resource; broader requests return invalid_target.

    1.7.0release notes

  • Replace oauth2.link() with linkSocial().

    1.7.0release notes

  • Custom authentication strategies must return { clientId, confirmation? } instead of a client record.

    1.7.0release notes

  • OAuth device grant ownership is separated into oauthDeviceAuthorization(); the integration schema also replaces resource with oauthClientId and resources.

    1.7.0release notes

  • Ending a session cuts off connected apps' API access; inactive-session access tokens are inactive and /oauth2/userinfo rejects them.

    1.7.0release notes

  • MCP options are no longer nested under oidcConfig; pass them as flat mcp options.

    1.7.0release notes

  • The deprecated oidcProvider plugin was removed; move OIDC authorization-server integrations to @better-auth/oauth-provider.

    1.7.0release notes

  • Google One Tap requires a Google client ID to verify ID tokens; configure oneTap({ clientId }) or socialProviders.google.clientId.

    1.6.17, 1.7.0release notesrelease notesrelease notes

  • The event callback parameter is required and always supplied; remove undefined guards.

    1.7.0release notes

  • PKCE now defaults to true for the generic OAuth provider.

    1.7.0release notes

  • PKCE now defaults to true for the first-class social provider.

    1.7.0release notes

  • Remove grantType from provider.authenticateClient(...).

    1.7.0release notes

  • The requireIssuerValidation option is removed in favor of OIDC discovery.

    1.7.0release notes

  • New name for the MCP authentication helper, replacing withMcpAuth.

    1.7.0release notes

  • SAML provider APIs always return certificates as an array; registration also rejects configurations without a signing-certificate source.

    1.7.0release notes

  • SCIM configuration, client APIs, database schema, and Group model are replaced; provisioning state cannot migrate in place and requires a full directory reprovision.

    1.7.0release notes

  • Custom Expo storage implementations must provide both synchronous and asynchronous SecureStore methods.

    1.7.0release notes

  • Replace signIn.oauth2({ providerId }) with signIn.social({ provider }) after the generic OAuth plugin became a first-class social provider.

    1.7.0release notes

  • Replaced signIn.oauth2({ providerId }) with signIn.social({ provider }) as generic OAuth became a first-class social provider with OAuth 2.1 defaults.

    1.7.0release notes

  • Use signIn.social({ provider }) in place of signIn.oauth2({ providerId }) for generic OAuth sign-in.

    1.7.0release notes

  • The silenceWarnings option and the well-known endpoint warnings it suppressed were removed.

    1.7.0release notes

  • Read SSO metadata from source.sso instead of source.oauth; handle source.method values sso-oidc and sso-saml.

    1.7.0release notes

  • Use the consolidated SAML ACS endpoint; /sso/saml2/callback/:providerId is removed and callbackUrl is now only the post-auth redirect.

    1.7.0release notes

  • Confidential clients must use their registered token_endpoint_auth_method.

    1.7.0release notes

  • Electron sign-in now enforces S256 PKCE and hardened custom-scheme origin checks; add your app's scheme to trustedOrigins. Host-bearing custom-scheme entries match that host exactly.

    1.7.0release notes

  • Custom providers replace the removed verifyIdToken method with an idToken config carrying a JWKS source, issuer, and audience.

    1.7.0release notes

  • Custom UpstreamProvider implementations replace verifyIdToken with an idToken config carrying a JWKS source, issuer, and audience.

    1.7.0release notes

  • validAudiences is removed; move resource identifiers into resources and link restricted clients through oauthClientResource.

    1.7.0release notes

  • Custom UpstreamProvider implementations must replace verifyIdToken with an idToken config.

    1.7.0release notes

  • Rename withMcpAuth to requireMcpAuth.

    1.7.0release notes

  • Assignment now requires both a verified provider domain and a verified stored user email, preventing social sign-in from joining an organization based only on a provider's domain claim.

    1.6.29release notesrelease notes

  • Server-side OAuth requests now refuse redirect responses instead of following them.

    1.6.22release notes

  • DNS proof is required for every domain listed on a provider.

    1.6.21release notes

  • Rejects expired access tokens and requires the offline_access scope for refresh token usage.

    1.6.17release notesrelease notes

  • Rejects cross-site logout requests carrying only a session cookie without a valid id_token_hint.

    1.6.17release notesrelease notes

  • Enforces tenant restrictions and rejects tokens issued for other applications across Google One Tap, Microsoft Entra ID, SSO, WeChat, and Reddit sign-in.

    1.6.17release notes

  • The Expo authorization proxy rejects redirect and callback targets that are not in trustedOrigins.

    1.6.17release notes

  • Treats only boolean true or the string "true" as a verified email and rejects the string "false" as unverified.

    1.6.17release notesrelease notes

  • Rejects unknown or malformed role values by validating them against configured static and dynamic roles.

    1.6.17release notes

  • The token endpoint enforces per-client grant types, preventing clients registered only for authorization_code from requesting client_credentials tokens.

    1.6.16release notes

  • Sign-in is rejected when no account ID can be resolved from the provider response, preventing account collisions for providers that omit sub.

    1.6.16release notes

  • Server-side requests to token, userinfo, and JWKS endpoints reject addresses that are not publicly routable, protecting against SSRF.

    1.6.16release notes

  • The operation deprovisions the user rather than deleting the global account.

    1.6.16release notes

  • Electron auth transfers require S256 PKCE at minting and exchange, rejecting plain and missing code_challenge_method values.

    1.6.16release notes

  • Introspection requires an azp claim and a valid client on JWT access tokens, preventing session JWTs from being reported as active access tokens.

    1.6.16release notes

  • The endpoint rejects plugin-managed active organization, active team, and impersonation fields with a 400 error; use their dedicated endpoints to change them.

    1.6.16release notes

  • Validation works on all supported runtimes and rejects URIs containing a fragment component, as required by RFC 6749 §3.1.2.

    1.6.14release notes

  • Rate-limited responses now return HTTP 429 instead of 401, allowing clients to distinguish throttling from authentication failures.

    1.6.11release notes

  • The oidc-provider and mcp plugins now require this for confidential clients on refresh token grants.

    1.6.11release notessecurity advisory

  • The adapter primitive was renamed from claimOne to consumeOne for atomically consuming database rows without race conditions.

    1.6.11release notes

  • It now rejects providerId values that collide with built-in account providers, preventing tokens from authenticating against unintended accounts.

    1.6.11release notes

  • The invitation email verification gate now also applies when retrieving an invitation.

    1.6.11release notes

  • The invitation email verification gate now also applies when listing a user's invitations.

    1.6.11release notes

  • Linking an OAuth identity to a local account now requires a verified local email.

    1.6.11release notessecurity advisory

  • A unique constraint was added to the refresh token field.

    1.6.11release notes

  • The oidc-provider and mcp plugins now reject incomplete PKCE parameters.

    1.6.11release notes

  • This option is now enabled by default to prevent invitation takeover.

    1.6.11release notessecurity advisory

  • Registration now requires an org admin or owner role, preventing organization members from registering providers.

    1.6.11release notes

  • Renamed the parameter from accountId to id to reflect that the query uses the primary key.

    1.6.10release notes

  • setActiveTeam now only accepts teams from the currently active organization.

    1.6.10release notes

  • Two-factor authentication challenges are again limited to credential sign-in paths; non-credential sign-in flows no longer trigger a challenge.

    1.6.4release notes

  • Two-factor authentication enforcement now triggers on all sign-in paths, including magic-link, OAuth, passkey, email-OTP, and SIWE.

    1.6.3release notes

  • Dynamic client registration now rejects skip_consent at the schema level.

    1.6.2release notes

  • Duplicate email now throws when autoSignIn is false and email verification is not required.

    1.5.5, 1.6.0release notesrelease notes

  • InResponseTo validation is enabled by default for SP-initiated SAML flows; set it to false to restore the previous behavior.

    1.6.0release notes

  • generateId: "uuid" now takes precedence over an adapter customIdGenerator.

    1.5.6, 1.6.0release notesrelease notes

  • Password reset requests now pass through origin check middleware.

    1.5.5, 1.6.0release notesrelease notes

  • Authorization is now enforced on SCIM management endpoints.

    1.6.0release notes

  • Phone sendOTP failures are now rethrown instead of silently swallowed.

    1.6.0release notes

  • freshAge is now calculated from session creation time instead of update time; set session.freshAge to 0 to disable the check.

    1.6.0release notes

  • updateUser no longer overwrites unrelated username fields and now enforces username uniqueness.

    1.6.0release notes

  • The accountInfo endpoint uses accountId instead of id.

    1.5.3release notes

  • Removes the deprecated type; use DBAdapter instead.

    1.5.0release notes

  • Use the value "serial" as the replacement for advanced.database.useNumberId.

    1.5.0release notes

  • Removes this deprecated option; use advanced.database.generateId: "serial" instead.

    1.5.0release notes

  • Replaces the ApiKey table's userId field.

    1.5.0release notes

  • Renames the ApiKey table field userId to referenceId.

    1.5.0release notes

  • The client SDK owner identifier has been renamed to apiKey.referenceId.

    1.5.0release notes

  • Removes the deprecated client type; use ClientAtomListener instead.

    1.5.0release notes

  • Removes this export; use the testUtils plugin instead.

    1.5.0release notes

  • The API key plugin has moved to a separate package that must be installed separately.

    1.5.0release notes

  • Removes the barrel export in favor of individual utility subpath exports.

    1.5.0release notes

  • Adds the subpath export for defineErrorCodes.

    1.5.0release notes

  • Adds the subpath export for generateId.

    1.5.0release notes

  • Adds the subpath export for safeJSONParse.

    1.5.0release notes

  • The Drizzle adapter is available as a separately installable package for smaller bundles and independent adapter versioning.

    1.5.0release notes

  • The in-memory adapter is available as a separately installable package for smaller bundles and independent adapter versioning.

    1.5.0release notes

  • The MongoDB adapter is available as a separately installable package for smaller bundles and independent adapter versioning.

    1.5.0release notes

  • The Prisma adapter is available as a separately installable package for smaller bundles and independent adapter versioning.

    1.5.0release notes

  • Redis secondary storage is available as a separate package.

    1.5.0release notes

  • Removes the deprecated type; use BetterAuthClientOptions instead.

    1.5.0release notes

  • Removes the deprecated API; use createAdapterFactory instead.

    1.5.0release notes

  • create.after, update.after, and delete.after now run after the transaction commits; plugins needing atomic writes should use the adapter during the main operation.

    1.5.0release notes

  • Now returns RawError objects containing code and message instead of plain strings.

    1.5.0release notes

  • Plugin error codes now expect Record<string, RawError> rather than Record<string, string>.

    1.5.0release notes

  • Removes this endpoint; use the standard password reset flow instead.

    1.5.0release notes

  • Moves from the better-auth root export to better-auth/db/migration to avoid bundling extra dependencies.

    1.5.0release notes

  • Removes InferSession; use the generic Session type instead.

    1.5.0release notes

  • Removes InferUser; use the generic User type instead.

    1.5.0release notes

  • Removes the deprecated helper export from better-auth/types/helper; import it from @better-auth/core.

    1.5.0release notes

  • Enforces HTTPS for redirect URIs, allowing HTTP only for localhost.

    1.5.0release notes

  • The OAuth 2.1 Provider replaces the previous OIDC Provider plugin, which is planned for deprecation in a future release.

    1.5.0release notes

  • Removes the deprecated hook; use afterEmailVerification instead.

    1.5.0release notes

  • Renames the Organization permission field to permissions.

    1.5.0release notes

  • Default rate limits are stricter for password reset endpoints.

    1.4.18, 1.5.0release notesrelease notes

  • The callback's first argument is now referenceId instead of userId.

    1.5.0release notes

  • Default rate limits are stricter for phone number verification endpoints.

    1.5.0release notes

  • Default rules limit sign-in and sign-up to 3 requests per 10 seconds, and password reset and OTP to 3 requests per 60 seconds.

    1.5.0release notes

  • Removes the id field from sessions in secondary storage; plugins that read it must update.

    1.5.0release notes

  • Removes the deprecated API; use sendChangeEmailConfirmation instead.

    1.5.0release notes

  • Use the generic Session type instead of the removed InferSession type.

    1.5.0release notes

  • Removes the deprecated client type; use ClientStore instead.

    1.5.0release notes

  • Removes the deprecated type; use DBTransactionAdapter instead.

    1.5.0release notes

  • Use the generic User type instead of the removed InferUser type.

    1.5.0release notes

  • Redirect URIs are required to use HTTPS.

    1.4.19release notes

  • Roles assigned to members cannot be deleted.

    1.4.19release notes

  • The continue and consent endpoints return url instead of uri.

    1.4.19release notes

  • SAML responses containing multiple assertions are rejected.

    1.4.11release notes

  • Corrects the accountLinking default to true.

    1.4.10release notes

  • Domain verification is now enforced when assigning an organization by domain.

    1.4.9release notes

  • Deprecated SAML signature and digest algorithms are rejected.

    1.4.9release notes

  • SAML assertions are now enforced as one-time use.

    1.4.9release notes

  • SAML sign-in now enforces the trusted provider check.

    1.4.9release notes

  • Password length is now validated during password reset.

    1.4.7release notesrelease notes

  • Admins can no longer be impersonated by default.

    1.4.6release notesrelease notes

  • The user-agent is no longer applied by default.

    1.4.4release notes

  • The passkey generate-authenticate-options endpoint changes from POST to GET.

    1.4.1release notes

  • Adapters are expected to implement the transaction function.

    1.4.0release notes

  • The unimplemented autoCreateOnSignUp option is removed.

    1.4.0release notes

  • Uses JWE for the cookie cache by default.

    1.4.0release notes

  • Default values are no longer applied during find calls.

    1.4.0release notes

  • Generated Drizzle schemas for SQLite use timestamps, and DefaultNow is deprecated.

    1.4.0release notes

  • The email verification check now occurs after the password check.

    1.4.0release notes

  • The package is ESM-only, which affects how projects import it.

    1.4.0release notes

  • An error is thrown if an event cannot be constructed.

    1.4.0release notes

  • Removes the deprecated forgetPassword endpoints.

    1.4.0release notes

  • The getCheckoutSessionParams typing was updated to remove TypeScript error suppression.

    1.4.0release notes

  • isAnonymous now defaults to false instead of null.

    1.4.0release notes

  • Issuing an API key no longer creates a mock session by default.

    1.4.0release notes

  • OAuth redirects to GET when the initiating method is POST.

    1.4.0release notes

  • OIDC consent requirements are enforced according to the specification, and consent is requested when scopes change.

    1.4.0release notes

  • Deleting a member from an organization also removes them from teams.

    1.4.0release notes

  • Creating or updating an organization prevents empty names and slugs, and organization updates prevent duplicate slugs.

    1.4.0release notes

  • Drizzle schema generation replaces pgEnum with a text enum type.

    1.4.0release notes

  • An error is thrown if query.referenceId is defined.

    1.4.0release notes

  • The admin API applies stricter request body validation when setting a user's password.

    1.4.0release notes

  • The multi-session signout hook rejects cookies without valid signatures.

    1.4.0release notessecurity advisory

  • Removes the deprecated ssoClient export from the client plugin.

    1.4.0release notes

  • Transactions are disabled by default in the create-adapter package.

    1.4.0release notes

  • The /update-user endpoint no longer allows updating a phone number.

    1.4.0release notes

  • The OIDC provider represents updated_at as a UNIX numeric timestamp.

    1.4.0release notes

  • viewBackupCodes returns a parsed array.

    1.3.28, 1.4.0release notesrelease notes

  • URLs without a protocol no longer satisfy a wildcard origin.

    1.3.33release notes

  • The async local storage export was removed.

    1.3.30release notes

Security 239

  • Replay reservations last through the full accepted window, preventing proof reuse in its final second.

    1.7.26release notes

  • Kakao sign-in now uses PKCE by sending code_challenge and code_verifier.

    1.7.26release notes

  • Refreshed tokens no longer carry a sid for a session that has already ended.

    1.7.26release notes

  • Rejects an expired challenge before sending an OTP or counting a failed attempt.

    1.7.26release notes

  • Endpoints accepting DPoP-bound tokens should call enforceDpopBinding from better-auth/oauth2 with the request and a shared replay store to enforce DPoP binding.

    1.7.24release notes

  • OAuth token requests that fail PKCE, redirect_uri, resource, or DPoP validation no longer consume the authorization or device code.

    1.7.23release notes

  • Cross-origin browser clients can read authentication challenges; CORS layers that set their own exposed headers must include WWW-Authenticate.

    1.7.23release notes

  • Revoking the current session or deleting the user with a token now expires session cookies.

    1.7.22release notes

  • In-flight access tokens are revoked on adapters without foreign keys.

    1.7.21release notes

  • Token reuse that revokes an in-flight issuance now returns invalid_grant.

    1.7.21release notes

  • Consent denial redirects to the client only while the client is enabled and its redirect_uri remains valid.

    1.7.21release notes

  • An optional headers input is available for refreshAccessToken; Generic OAuth also sends authorizationHeaders on access token refresh and avoids invalid combined client-authentication headers.

    1.7.21release notes

  • Signed responses resubmitted with assertion IDs written as XML character references are rejected under the specified SAML settings.

    1.7.21release notes

  • 401 responses no longer expose internal error messages; those errors are logged on the server instead.

    1.7.21release notes

  • With allowPublicClientPrelogin, the endpoint returns a client only when its client_id matches the signed oauth_query; otherwise it responds with 401 invalid_client.

    1.7.20release notes

  • SAML assertion validation now applies the default 5-minute saml.clockSkew to NotBefore and NotOnOrAfter checks in samlify.

    1.7.20release notes

  • Failed fallback join queries no longer print raw database errors, including SQL and bound values, to console.error in addition to the configured logger.

    1.7.19release notes

  • With secondaryStorage and storeSessionInDatabase, revocation also covers sessions created while it is running, except sessions created by a session.delete.after hook.

    1.7.18release notes

  • Denying a device authorization request now rejects a revoked session that is still in the cookie cache.

    1.7.17release notes

  • Sessions created by this hook are no longer treated as revoked during revoke-all when using secondaryStorage with storeSessionInDatabase.

    1.7.17release notes

  • IP wildcard trusted origins with custom schemes no longer match hosts with out-of-range or zero-padded octets.

    1.7.17release notes

  • Email OTP now enforces the configured guess limit under concurrent requests.

    1.7.16release notes

  • Anonymous users are no longer linked during sign-in while a second factor is still pending.

    1.7.16release notes

  • The proxy no longer signs state the server did not issue or redirects to hosts that are not configured providers.

    1.7.16release notes

  • Email change codes are now bound to the requesting account.

    1.7.16release notes

  • Links are now tied to the account they were issued to, preventing them from working for another account.

    1.7.16release notes

  • String claims such as "false" are no longer treated as verified during OAuth sign-in; Cognito and Microsoft Entra ID claims are also read correctly.

    1.7.16release notes

  • MySQL with generateId: "serial" no longer returns another request's record on connection pools.

    1.7.16release notes

  • Extra whitespace in organization roles no longer allows them to pass role checks.

    1.7.16release notes

  • Set origin when rpID is set and a wildcard in baseURL.allowedHosts covers it, so the expected WebAuthn origin comes from server configuration rather than the request.

    1.7.16release notes

  • Bulk revocation now ends sessions missing from cached lists, and sensitive authentication flows check the session store, preventing revoked sessions from remaining usable.

    1.7.16release notes

  • Sign-in no longer returns the internal auth context when the cookie is not a transfer request.

    1.7.16release notes

  • Wildcard trusted origins no longer match URLs outside the intended scheme, host, or path.

    1.7.16release notes

  • The Zoom provider now respects disableSignUp, requireEmailVerification, and overrideUserInfoOnSignIn.

    1.7.16release notes

  • Organization and API key metadata, and OAuth proxy sign-ins, now handle a constructor field in additionalData without a prototype pollution error.

    1.7.15release notes

  • Error messages report the entry position instead of including the entry value.

    1.7.15release notes

  • Built-in social providers no longer follow HTTP redirects on token exchange, refresh, verification, and JWKS signing key requests.

    1.7.15release notes

  • The admin plugin rejects banned users when a session is created outside an endpoint.

    1.7.15release notes

  • The callbackURL is validated against trusted origins after replacing {CHECKOUT_SESSION_ID}, preventing redirects to untrusted origins via checkoutSessionId.

    1.7.15release notes

  • A third-argument cause option preserves the underlying error for server-side callers without exposing it in the response.

    1.7.12release notes

  • For ID token sign-in with a provider that has no clientId, set clientId to every client ID your apps sign in with so token audiences can be checked.

    1.7.12release notes

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

    1.7.12release notes

  • Fixed ID token signature and claim validation for Twitch and Paybin sign-in. Custom Paybin issuers must publish RS256 signing keys at the specified JWKS path.

    1.7.11release notes

  • Refetches for unknown key IDs are limited to protect servers from repeated requests.

    1.7.10release notes

  • Consent without a reference no longer overwrites or reuses consent for a different reference.

    1.7.10release notes

  • Fixed validation for token and UserInfo requests behind proxies that rewrite request URLs.

    1.7.9release notes

  • Resource identifiers are validated for adminCreateOAuthResource and configured resources.

    1.7.8release notes

  • Privilege checks for actions on existing OAuth clients include clientId.

    1.7.8release notes

  • Cookie security attributes are aligned with RFC 6265bis.

    1.7.8release notes

  • Expired or revoked customSession sessions no longer leave stale cookies, and session lookup errors are no longer treated as signed-out users.

    1.7.8release notes

  • Failed password resets no longer consume reset links or OTPs before the new password is saved.

    1.7.8release notes

  • The new password is no longer retained when database session revocation fails.

    1.7.8release notes

  • better-auth: OAuth state can be used as a Magic Link to sign in as another user

    1.7.7security advisory

  • Fixes concurrent PostgreSQL requests exceeding database-backed rate limits.

    1.7.7release notessecurity advisory

  • ID-token sign-in now respects the social provider’s disableSignUp setting.

    1.7.7release notes

  • Fixes a critical account-takeover vulnerability. Servers sharing verification storage must be upgraded together; request new Magic Links and restart pending OAuth/SAML sign-ins. No database migration is required.

    1.7.7release notes

  • Prevents OAuth Proxy from accepting sign-in state as a provider profile. Upgrade all OAuth Proxy participants together.

    1.7.7release notessecurity advisory

  • Verifies signed authorization queries before rendering a custom consent page.

    1.7.7release notes

  • Fixed stale Expo secure-storage session data and corrupted cookies during concurrent updates.

    1.7.4release notes

  • Expo apps no longer send unauthenticated requests during interrupted cookie storage updates.

    1.7.3release notes

  • Improves PayPal authorization code and refresh token requests, including PKCE handling.

    1.7.3release notes

  • Uses OAuth-compliant Basic authentication and adds redirect protection for Reddit token requests.

    1.7.3release notes

  • Re-enrollment no longer replaces an active authenticator and its backup codes.

    1.7.3release notes

  • Validation now handles relative callback and redirect URLs with paths, queries, and fragments.

    1.7.2release notes

  • Signatures are validated on the raw assertion rather than trusting an already-parsed response; SP metadata signing policy and size limits are enforced.

    1.7.1release notes

  • The option now correctly controls whether the SP requires signed assertions, matching real-world IdP signing behavior.

    1.7.1release notes

  • IdP-initiated flows are supported through a secure server-side bounce.

    1.7.0release notes

  • Replayed authorization codes are rejected with invalid_grant, and tokens issued from that code are revoked.

    1.7.0release notes

  • Every OAuth response carrying credentials sends Cache-Control: no-store.

    1.7.0release notes

  • OAuth responses carrying credentials now send Cache-Control: no-store.

    1.7.0release notes

  • Metadata documents follow shared-cache freshness rules, fail closed when freshness is ambiguous, revalidate conditionally, and converge concurrent refreshes on one client-resource link.

    1.7.0release notes

  • A server-trusted OAuth state channel fixes anonymous account linking in in-app browsers.

    1.7.0release notes

  • Invalid tokens receive a 401 invalid_token challenge.

    1.7.0release notes

  • The single-use jti check is atomic across processes.

    1.7.0release notes

  • Dynamic client registration can be protected using RFC 7591 initial access tokens.

    1.7.0release notes

  • A client presenting a refresh token issued to another client receives invalid_grant.

    1.7.0release notes

  • Authorization requests missing response_type redirect to the verified client redirect URI.

    1.7.0release notes

  • SAML assertion signatures are verified directly; SP metadata receives the IdP metadata signing policy and size limit, and wantAssertionsSigned controls signed assertions.

    1.7.0release notes

  • No longer reveals whether an email is registered before the OTP is verified.

    1.6.26release notes

  • Deleting a user now also removes their sessions from secondary storage.

    1.6.26release notes

  • Google One Tap no longer creates new users when sign-up is disabled on the Google provider.

    1.6.25release notes

  • The endpoint includes no-store cache control headers to prevent stale session data from being served.

    1.6.24release notes

  • Magic-link and email-OTP send endpoints validate the Origin header on cookieless requests to prevent cross-origin abuse.

    1.6.24release notes

  • Two-factor authentication now has account-level verification lockout.

    1.6.22release notes

  • Better Auth: Account takeover via pre-account hijacking on magic-link and email-OTP sign-in

    1.6.22security advisoryrelease notes

  • SCIM write-path operations are now properly scoped.

    1.6.22release notes

  • Email sign-up stores displayUsername fallbacks only when they pass username validation.

    1.6.21release notes

  • Validation is applied consistently across sign-in flows, including Google One Tap.

    1.6.21release notes

  • Profile callbacks that do not match an issued OAuth state are rejected, preventing session creation with stale state.

    1.6.21release notes

  • Fixed cancel, upgrade, restore, and billing portal actions that could act on the wrong organization.

    1.6.21release notesrelease notesrelease notes

  • User information is validated against the verified ID token subject.

    1.6.21release notes

  • Rate limits are enforced before plugin request handlers run.

    1.6.21release notes

  • IdP SLO POST URLs using non-http(s) schemes such as javascript: or data: are rejected.

    1.6.21release notes

  • Responses with an audience, recipient, or destination that does not match the configured Service Provider are rejected.

    1.6.21release notes

  • Admin permission changes and bans take effect immediately even when session cookie caching is enabled.

    1.6.21release notes

  • Sign-in rejects emails that already belong to another account, preventing one email from being attached to two accounts.

    1.6.21release notes

  • Deleting an SSO provider also removes linked accounts, preventing reuse by a later provider with the same ID.

    1.6.21release notes

  • TOTP and backup-code verification lock out after five wrong codes and return TOO_MANY_ATTEMPTS_REQUEST_NEW_CODE.

    1.6.21release notes

  • Client IP resolution prevents X-Forwarded-For spoofing in multi-hop proxy chains.

    1.6.21release notes

  • The refresh cookie Max-Age is capped at expiresIn.

    1.6.20release notes

  • The plugin no longer leaks internal OAuth state keys into additionalData.

    1.6.19release notes

  • Prevents concurrent verification from reducing the remaining-uses count below zero or exceeding the rate limit.

    1.6.18release notes

  • Adds an optional method for custom storage backends to opt into strict rate-limit enforcement.

    1.6.18release notes

  • Adds an adapter method for atomic counter updates, enabling strict rate-limit and usage-counter enforcement under concurrent load.

    1.6.18release notes

  • Only act on sessions for which the caller holds a signed cookie, preventing unauthorized session manipulation.

    1.6.18release notes

  • Canonicalizes signed redirect parameters by key and value so CDN or proxy reordering does not break signature verification.

    1.6.18release notes

  • Rejects cross-purpose challenges so an authentication challenge cannot complete registration and vice versa.

    1.6.18release notes

  • Prevents concurrent requests from slipping past configured limits.

    1.6.18release notes

  • Assigns users without an email a non-routable placeholder address to prevent accidental matches with real mailboxes.

    1.6.18release notes

  • Adds an atomic increment method for strict rate-limit enforcement.

    1.6.18release notes

  • Adds atomic counter updates for strict rate-limit and usage-counter enforcement under concurrent load.

    1.6.18release notes

  • Concurrent verification no longer drives remaining uses below zero or exceeds the rate limit; secondary-storage-only counters remain best-effort.

    1.6.17release notes

  • API key updates fail when the caller's session has been revoked server-side instead of succeeding within the cookie-cache window.

    1.6.17release notes

  • Custom rate-limit storage may implement this optional method for strict enforcement; rate-limit handling also avoids concurrent limit bypass, unbounded in-memory growth, and stale database entries.

    1.6.17release notes

  • Counter updates on the memory, Kysely, Drizzle, Prisma, and MongoDB adapters are atomic on the default configuration, preventing rate-limit and API-key usage-limit race conditions.

    1.6.17release notesrelease notes

  • Prevents duplicate account deletions from concurrent callback requests.

    1.6.17release notesrelease notes

  • Rejects account deletion when the session has been revoked server-side; cookie-only session deployments are unaffected.

    1.6.17release notesrelease notes

  • Prevents the same approved device code from being redeemed multiple times under concurrent polls.

    1.6.17release notesrelease notes

  • Prevents concurrent exchange attempts from exchanging an authorization code for a session more than once.

    1.6.17release notesrelease notes

  • Prevents concurrent requests from signing in multiple times or exceeding the attempt limit.

    1.6.17release notesrelease notes

  • Returns null for expired sessions instead of treating stale signed cookies as live sessions.

    1.6.17release notesrelease notes

  • Checks breached passwords on additional email-OTP and phone-number reset-password routes and admin password-setting routes.

    1.6.17release notesrelease notes

  • Atomically records single-use markers so only one concurrent caller succeeds for replay-protected operations.

    1.6.17release notesrelease notes

  • The configured team member cap is enforced on addMember and add-team-member; rejected addMember calls do not create organization members.

    1.6.17release notes

  • Acts only on sessions for which the caller holds a signed cookie, preventing activation or revocation of other sessions.

    1.6.17release notes

  • Prevents one-time tokens from being redeemed multiple times under concurrent requests.

    1.6.17release notesrelease notes

  • Rejects registration challenges used for authentication and vice versa, and fails when the target user cannot be resolved.

    1.6.17release notes

  • Prevents concurrent requests from using a password reset token to change a password more than once.

    1.6.17release notesrelease notes

  • Prevents concurrent requests from signing in multiple times or exceeding the attempt limit.

    1.6.17release notesrelease notes

  • Users without email receive an unverified non-routable <id>@reddit.invalid address; mapProfileToUser can provide a real email.

    1.6.17release notes

  • Sets expiry only when a window first opens, preventing continued traffic from extending the window.

    1.6.17release notesrelease notes

  • Holds under concurrent requests so a duplicate SAML assertion submission is not accepted more than once.

    1.6.17release notesrelease notes

  • Uses constant-time comparison during request authentication, closing a timing side channel across all storage modes.

    1.6.17release notesrelease notes

  • Adds atomic counter updates with conditional row guards for strict enforcement of rate limits and usage counters.

    1.6.17release notes

  • Prevents server-only endpoints from being accidentally exposed over HTTP.

    1.6.17release notes

  • Prevents Ethereum nonces from being accepted multiple times under concurrent sign-in requests.

    1.6.17release notesrelease notes

  • Allows organization admins and owners to verify domains for SSO providers their organization owns, not only the original registering member.

    1.6.17release notesrelease notes

  • Reuses email-matched customers only when verified, syncs status from successful checkout sessions, scopes cancellation and restoration to the target subscription, validates returnUrl against trustedOrigins, and checks all subscriptions on organization deletion.

    1.6.17release notes

  • Expired challenges no longer complete login, and concurrent verifications no longer create duplicate sessions.

    1.6.17release notesrelease notes

  • Prevents concurrent requests from signing in multiple times or exceeding the attempt limit.

    1.6.17release notesrelease notes

  • The admin endpoint now enforces permissions on role, ban, and email fields and prevents data from overriding protected fields.

    1.6.16release notes

  • The endpoint verifies the session against the authoritative store with disableCookieCache: true, preventing revoked sessions from being accepted within the cookie-cache window.

    1.6.16release notes

  • Verification persists only fields it mutates, preventing concurrent disables, permission changes, or expiry updates from being reverted by an in-flight verification.

    1.6.16release notes

  • Session update and account token routes immediately reject deleted sessions when cookie cache is enabled alongside database or secondary storage.

    1.6.16release notes

  • Requested team IDs are validated to belong to the invitation's organization, preventing cross-organization team membership.

    1.6.16release notes

  • Token verification checks the configured app through debug_token, requiring is_valid, a matching app_id, and a client secret for direct sign-in.

    1.6.16release notes

  • Google hosted-domain enforcement now verifies the hd claim on the verified ID token and callback profile.

    1.6.16release notes

  • The cache is scoped per verification source and has a TTL, preventing key cross-contamination when verifying tokens against multiple issuers simultaneously.

    1.6.16release notes

  • Reddit no longer stores oauth_client_id as the user email; when no real email is provided, a synthetic per-user address is used.

    1.6.16release notes

  • ID token verification now checks the signature, issuer, audience, expiration, and nonce against PayPal's JWKS or client secret.

    1.6.16release notes

  • OAuth continuation derives post-login gate completion from a server-issued session marker instead of the client-submitted postLogin flag.

    1.6.16release notes

  • The endpoint trusts the account cookie only when its userId, providerId, and accountId match the resolved session user.

    1.6.16release notes

  • Requests are consumed atomically to prevent replay attacks on concurrent requests.

    1.6.16release notes

  • Verification now binds the signed message to server state before creating a session, rejecting signatures for a different message, nonce, or domain.

    1.6.16release notes

  • Provider IDs are isolated from the OAuth/social account-linking namespace, preventing unintended account linking when an SSO provider ID matches a trusted OAuth provider name.

    1.6.16release notes

  • Email sign-in and sign-up validate Origin and Referer against trustedOrigins even when requests carry no cookies.

    1.6.16release notes

  • The endpoint now properly enforces fresh-age session checks.

    1.6.15release notes

  • Prefers the __Secure- prefixed cookie over a non-secure leftover so a stale cookie cannot shadow the current session.

    1.6.14release notes

  • Prevents Google One Tap from authenticating the wrong local user when the presented Google account is linked to a different user.

    1.6.14release notes

  • Restores the normal emailed-invitation flow while enforcing stricter email verification for externally controlled or predictable invitation IDs.

    1.6.14release notes

  • Better Auth has stored XSS in the auth-server origin via javascript: redirect_uri in oidc-provider and mcp

    1.6.13security advisoryrelease notes

  • Google One Tap now resolves identity through the shared OAuth path when the presented Google account is already linked to a different local user.

    1.6.13release notes

  • Ambiguous helper methods no longer silently match the wrong account or wipe all sessions for a user.

    1.6.13release notes

  • Dynamic client registration now applies the clientPrivileges create check.

    1.6.13release notes

  • Logout handlers now match the session by token rather than ID, preventing users from remaining signed in after Single Logout.

    1.6.13release notesrelease notes

  • A high-severity XML injection vulnerability in signed SAML assertions was fixed by updating samlify.

    1.6.13release notes

  • Expired magic-link tokens and OAuth authorization codes are reliably rejected, with corrected error codes.

    1.6.12release notes

  • Returns an error if emailVerification.sendVerificationEmail is missing; verify-email links URL-encode callbackURL.

    1.6.12release notes

  • The admin endpoint now validates usernames.

    1.6.12release notes

  • Challenges are consumed atomically to prevent replay attacks; failed registration and authentication error status codes are improved.

    1.6.12release notes

  • Hidden from .well-known metadata unless dynamic client registration is enabled.

    1.6.12release notes

  • Rejects empty action lists and correctly evaluates OR conditions on unknown resources.

    1.6.12release notes

  • Fixes a cookie leak that allowed session_token and session_data to be captured and replayed to bypass 2FA when cookie caching is enabled.

    1.6.12release notes

  • Returns proper unauthorized errors for invalid token verification failures.

    1.6.12release notes

  • Better Auth has insecure cryptographic defaults in oidcProvider: alg=none advertised and plain PKCE accepted by default

    1.6.11security advisory

  • @better-auth/oauth-provider's OAuth authorization-code grant allows concurrent redemption when two token requests race the find-then-delete primitive

    1.6.11security advisoryrelease notes

  • The oidc-provider and mcp plugins now compare client secrets in constant time.

    1.6.11release notes

  • Pending codes are bound to the verifying session, preventing authenticated users from approving or denying another user's device code.

    1.6.11release notessecurity advisory

  • Concurrent requests can no longer mint multiple sessions from the same single-use token.

    1.6.11release notes

  • Concurrent requests can no longer fork refresh token families.

    1.6.11release notes

  • User-supplied endpoint URLs are validated against a public-routable host allowlist during provider registration and update.

    1.6.11release notes

  • Their TypeScript statement types now expose only their configured permissions.

    1.6.11release notes

  • Session cleanup now runs when admin, anonymous, or SCIM operations delete a user.

    1.6.11release notessecurity advisory

  • The oidc-provider and mcp plugins no longer advertise the none signing algorithm, following OAuth 2.1.

    1.6.11release notes

  • api.verifyApiKey now validates the key's configId against the request body.

    1.6.10release notes

  • Email enumeration protection now applies when emailAndPassword.autoSignIn is false.

    1.6.10release notes

  • Parameters no longer override free trial and internal metadata, preventing hidden trial periods and duplicate subscription rows on webhook.

    1.6.10release notes

  • OAuth callbacks no longer accept a missing provider account ID that could link accounts under an undefined id.

    1.6.10release notes

  • Consent continuations now complete after a forced login, and prompt=login is honored after consent continuation to prevent session bypass.

    1.6.10release notes

  • Fixed authorization flows that do not include a state parameter.

    1.6.8release notes

  • Host classification is unified and loopback bypass vectors across packages are closed.

    1.6.6release notes

  • Fixed an authorization bypass that let unprivileged authenticated users create OAuth clients when deployments relied on clientPrivileges to restrict client creation.

    1.6.5release notes

  • Authorization code validation was hardened.

    1.6.3release notes

  • Hardened dynamic baseURL resolution for direct auth.api calls and plugin metadata helpers.

    1.6.3release notes

  • Fixed a prototype pollution vulnerability when merging user-supplied metadata in the Stripe plugin.

    1.6.3release notes

  • Better Auth: OAuth callback accepts mismatched state when cookie-backed state storage is used without PKCE

    1.6.2security advisory

  • OAuth state verification now checks the cookie-stored nonce, preventing CSRF.

    1.6.2release notes

  • Better Auth: OAuth refresh-token rotation forks the token family on concurrent redemption

    1.6.0security advisory

  • Database fallback no longer restores revoked sessions.

    1.5.6, 1.6.0release notesrelease notes

  • OAuth proxy adds a dedicated secret option to reduce shared key exposure.

    1.6.0release notes

  • The oidc-provider validates redirect_uri when prompt=none.

    1.5.5release notes

  • Lets the magic-link plugin limit verification attempts.

    1.5.0release notes

  • Always returns { status: true } and simulates token generation to mitigate email enumeration through timing.

    1.5.0release notes

  • CSRF validation and origin checks are separated for more granular request validation.

    1.4.11, 1.5.0release notesrelease notes

  • Lets users change their email via OTP verification, optionally confirming the current email for added security.

    1.5.0release notes

  • Prevents user enumeration when sign-up is disabled.

    1.5.0release notes

  • Checks all user subscriptions before granting a free trial to prevent trial abuse.

    1.5.0release notes

  • Expired organization invites are rejected.

    1.5.0release notes

  • Atomically invalidates OTPs on use to prevent reuse through a race condition.

    1.5.0release notes

  • Hardens SAML ACS error redirects to prevent open redirects.

    1.4.19, 1.5.0release notesrelease notes

  • When email verification is required, sign-up no longer reveals whether an account already exists.

    1.5.0release notes

  • Verification identifiers can be stored hashed, with per-identifier overrides for choosing plain or hashed storage.

    1.5.0release notes

  • The aud claim is validated in OpenID Connect ID tokens.

    1.4.19release notes

  • Adds user ID checks to device authorization.

    1.4.18release notes

  • Handles trusted-device expiration server-side and makes maxAge configurable.

    1.4.18release notes

  • Better Auth: Rate limiter keys IPv6 addresses individually and is bypassable via prefix rotation

    1.4.17security advisory

  • Adds a userId check to /has-permission.

    1.4.10release notes

  • Prevents trial abuse by checking all user subscriptions.

    1.4.10release notes

  • XML parser hardening adds configurable size limits.

    1.4.10release notes

  • Better Auth Has Two-Factor Authentication Bypass via Premature Session Caching (session.cookieCache)

    1.4.9security advisory

  • The inviteMember endpoint validates that the specified role exists.

    1.4.9release notes

  • SAML cryptographic algorithms are validated during the initial phase.

    1.4.9release notes

  • Trusted origins are respected when the base URL is inferred and are resolved correctly.

    1.4.9release notes

  • Adds role permissions for user updates and validates role changes.

    1.4.7release notesrelease notes

  • Checks whether metadata is enabled before allowing updates through the API key update endpoint.

    1.4.7release notes

  • Adds InResponseTo validation for SSO.

    1.4.7release notesrelease notes

  • Enforces nonce validation.

    1.4.7release notes

  • Removes the SAML signature validation bypass.

    1.4.7release notesrelease notes

  • Verification tokens are now always removed after successful verification.

    1.4.6release notesrelease notes

  • Safely parses provider configurations on registration.

    1.4.6release notes

  • Clears the admin session cookie when impersonation stops.

    1.4.6release notes

  • Better Auth affected by external request basePath modification DoS

    1.4.2security advisory

  • Admin role updates are checked against configured roles to prevent assigning a role that does not exist.

    1.3.29, 1.4.0release notesrelease notes

  • Equality checks use constant-time comparison.

    1.4.0release notes

  • User code input is sanitized when approving a device.

    1.4.0release notes

  • Email OTP behavior prevents user enumeration.

    1.4.0release notes

  • OTP comparisons use a constant-time equality check.

    1.4.0release notes

  • The SAML callback respects disableImplicitSignUp.

    1.4.0release notes

  • Two-factor endpoints avoid using GET requests with a body.

    1.4.0release notes

Deprecations 10

  • The Cloudflare provider deprecates tokenEndpointAuthMethod, but continues to support it.

    1.7.13release notes

  • The legacy endpoint is deprecated and will be removed in the next minor release.

    1.7.3release notes

  • A warning is now emitted when the cookie plugin is placed last in the plugins array.

    1.6.10release notes

  • The oidc-provider plugin is deprecated in favor of @better-auth/oauth-provider.

    1.6.0release notes

  • Warns when an old @better-auth/cli is used with better-auth v1.5.x+.

    1.4.22release notes

  • Adds a deprecated options alias for backward compatibility.

    1.4.20release notes

  • Marks this endpoint as deprecated.

    1.4.18release notes

  • The SSO trustEmailVerified option is deprecated.

    1.4.9release notes

  • Deprecates the type of options.advanced.generateId.

    1.4.0release notes

  • The old sso plugin export is marked deprecated.

    1.4.0release notes

New APIs and options 252

  • Allows private_key_jwt clients with slight clock drift to avoid failing token exchange.

    1.7.26release notes

  • Social providers can store custom values on the provider account at sign-in.

    1.7.26release notes

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

    1.7.26release notes

  • Adds optional limit, offset, and sortDirection fields for pagination and a total count in the response.

    1.7.26release notes

  • Set this value if oauthProviderResourceClient(auth) should keep fetching signing keys over HTTP.

    1.7.25release notes

  • Use a shared replay store in multi-instance or serverless deployments; the default is in-memory.

    1.7.23release notes

  • Set jwksUrl if requireMcpAuth should keep fetching signing keys over HTTP.

    1.7.23release notes

  • An optional headers input is available for refreshAccessTokenRequest; Generic OAuth also sends authorizationHeaders on access token refresh and avoids invalid combined client-authentication headers.

    1.7.21release notes

  • The Cloudflare provider adds tokenEndpointAuth: { method } as an option.

    1.7.13release notes

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

    1.7.13release notes

  • Added optional self-service signing key rotation for private_key_jwt clients.

    1.7.10release notes

  • Added isContinuation so users can complete authorization after selecting an organization.

    1.7.9release notes

  • Client registration can link protected resources.

    1.7.8release notes

  • OAuth clients can be paused and resumed through adminUpdateOAuthClient.

    1.7.8release notes

  • Adds optional redirect URI validation for trusted deployments with dynamic OAuth redirect URIs.

    1.7.7release notes

  • Added a read-only command to validate your configured adapter schema on demand.

    1.7.6release notes

  • Added a read-only command to validate your configured adapter schema on demand.

    1.7.6release notes

  • Added a function that receives the banned user, allowing sign-in errors to include details such as the ban reason.

    1.7.6release notes

  • Added Vercel BotID as a captcha provider for protected authentication routes.

    1.7.6release notes

  • Added support for database.schemaName with direct PostgreSQL connections.

    1.7.5release notes

  • Added a per-auth-instance option to disable OpenTelemetry span creation.

    1.7.4release notes

  • Cloudflare is now a built-in social provider with client-secret and PKCE support.

    1.7.3release notes

  • Codex is now a supported target for configuring the Better Auth documentation MCP server.

    1.7.3release notes

  • Adds custom token endpoint authentication strategies for providers with non-standard request parameters.

    1.7.3release notes

  • Adds a way to check passwords against Have I Been Pwned in custom server-side flows.

    1.7.3release notes

  • A transaction-safe API is available for authenticating provisioned users.

    1.7.0release notes

  • ssoProvider supports additionalFields.

    1.7.0release notes

  • Per-request additionalParams are supported across signIn.social, linkSocial, and signIn.sso.

    1.7.0release notes

  • Per-request additionalParams are available across signIn.social, linkSocial, and signIn.sso.

    1.7.0release notes

  • An Auth instance can now be fetched directly.

    1.7.0release notes

  • Clients can register backchannel_logout_uri to receive notifications when a session ends.

    1.7.0release notes

  • The Client ID Metadata Document plugin is available as @better-auth/cimd.

    1.7.0release notes

  • Added built-in translations for 22 languages.

    1.7.0release notes

  • The Microsoft Entra ID social provider now supports clientAssertion.

    1.7.0release notes

  • Plugin database schemas support compound table indexes.

    1.7.0release notes

  • A server-only API is available for custom phone OTP flows.

    1.7.0release notes

  • Added a command for creating an initial admin user.

    1.7.0release notes

  • Optional passkey setting that signs the user in after successful passkey registration.

    1.7.0release notes

  • DPoP sender-constrained access tokens (RFC 9449) are supported.

    1.7.0release notes

  • hydrateSession makes useSession return server-fetched data on the first render.

    1.7.0release notes

  • A username option is available to make usernames immutable.

    1.7.0release notes

  • The Google provider supports the includeGrantedScopes option.

    1.7.0release notes

  • The listUserTeams API now accepts userId and organizationId.

    1.7.0release notes

  • Per-request loginHint is supported across signIn.social, linkSocial, and signIn.sso.

    1.7.0release notes

  • Per-request loginHint is available across signIn.social, linkSocial, and signIn.sso.

    1.7.0release notes

  • An optional SCIM-owned connection and credential catalog lets trusted server code create runtime tenant connections and issue, rotate, and revoke bearer credentials through server-only auth.api methods.

    1.7.0release notesrelease notes

  • The OAuth device authorization grant (RFC 8628) is now supported.

    1.7.0release notes

  • An extension surface is available for registering grants, client authentication methods, discovery metadata, and claim contributors.

    1.7.0release notes

  • Token endpoint client authentication can now be configured across the OAuth stack.

    1.7.0release notes

  • Use oauthClientResource to link restricted OAuth clients to resources.

    1.7.0release notes

  • organization.getOrganization() supports metadata-only fetches.

    1.7.0release notes

  • private_key_jwt client authentication is supported for token endpoint requests.

    1.7.0release notes

  • Forward extra parameters on generic OAuth token refresh using refreshTokenParams.

    1.7.0release notes

  • Added an entry point for projects using Drizzle Relations v2.

    1.7.0release notes

  • Social sign-in can require email verification on a per-provider basis.

    1.7.0release notes

  • Social sign-in now supports a per-provider requireEmailVerification option.

    1.7.0release notes

  • Generates the Drizzle schema inside a pgSchema namespace.

    1.7.0release notes

  • SCIM supports the Enterprise User extension and standard User attributes for interoperability conformance.

    1.7.0release notes

  • SCIM adds durable Group resources with connection-scoped membership and lifecycle endpoints.

    1.7.0release notes

  • The session cookie cache supports JWKS-backed asymmetric JWTs.

    1.7.0release notes

  • The issuing sessionId is exposed to id_token claim contributors.

    1.7.0release notes

  • A validation gate can reject an identity before a user is created or linked.

    1.7.0release notes

  • Add a user.validateUserInfo gate to reject an identity before a user is created or linked.

    1.7.0release notes

  • Requested UserInfo claims are honored through a claim registry.

    1.7.0release notes

  • An option can disable OpenTelemetry span creation for individual auth instances.

    1.6.31release notes

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

    1.6.26release notes

  • The last-login-method plugin adds a beforeStoreCookie option for GDPR compliance.

    1.6.24release notes

  • verifyIdToken accepts request context as a third argument so custom ID token verifiers can read request headers.

    1.6.24release notes

  • Added Yandex as a social OAuth provider.

    1.6.23release notes

  • The device authorization plugin supports pre-binding device codes to a specific user.

    1.6.19release notes

  • Adds an optional adapter method for atomic counter updates with conditional row guards; adapters without native support use a transaction-based fallback.

    1.6.17release notes

  • An experimental plugin enables popup-based OAuth sign-in in cross-site iframes by returning the session token through the bearer plugin.

    1.6.17release notes

  • Adds an atomic increment method to Redis secondary storage.

    1.6.17release notes

  • This option controls SCIM token creation.

    1.6.16release notes

  • Remote introspection rejects tokens with a missing or mismatching aud claim; set allowMissingAudience to true when the introspection response legitimately omits aud.

    1.6.16release notes

  • Exposes common authenticator names for displaying friendly passkey provider names.

    1.6.15release notes

  • Resolves authenticator names from AAGUID so passkeys can display a friendly provider name.

    1.6.15release notes

  • Server-side accountInfo calls accept an optional userId, allowing trusted callers to read provider profiles without constructing session headers.

    1.6.13release notes

  • Adds a genericOAuth config option for providers that omit expires_in in their token response.

    1.6.12release notes

  • Adds toCamelCase, toSnakeCase, toPascalCase, and toKebabCase utilities.

    1.6.12release notes

  • Social providers now support an array of client IDs as the ID token audience.

    1.6.7release notes

  • A bounded-concurrency async utility is available from @better-auth/core/utils/async.

    1.6.6release notes

  • Added a callback for injecting custom fields into token endpoint responses.

    1.6.3release notes

  • Added support for Stripe SDK v21 and v22.

    1.6.3release notes

  • Add the verified column to the twoFactor table; it defaults to true, so existing rows do not need a backfill.

    1.6.2release notes

  • The HaveIBeenPwned plugin adds an enable option.

    1.6.0release notes

  • The Drizzle adapter adds case-insensitive query support.

    1.6.0release notes

  • Experimental instrumentation covers endpoints, hooks, middleware, and database operations.

    1.6.0release notes

  • Team endpoints now accept an explicit organizationId parameter.

    1.5.6, 1.6.0release notesrelease notes

  • The OAuth provider adds pairwise subject identifiers as described in OIDC Core Section 8.

    1.5.5, 1.6.0release notesrelease notes

  • All built-in plugins expose a plugin version field.

    1.6.0release notes

  • The passkey package adds pre-auth registration and WebAuthn extensions support.

    1.6.0release notes

  • The OAuth provider adds prompt=none support.

    1.5.6, 1.6.0release notesrelease notes

  • Stripe plans can now customize prorationBehavior per plan.

    1.5.6, 1.6.0release notesrelease notes

  • The SSO plugin adds provisionUserOnEveryLogin.

    1.6.0release notes

  • The OAuth provider adds a public client prelogin endpoint.

    1.5.6, 1.6.0release notesrelease notes

  • The email-otp plugin adds resendStrategy to reuse an existing OTP.

    1.5.6, 1.6.0release notesrelease notes

  • The sendMagicLink callback now receives request metadata.

    1.5.6, 1.6.0release notesrelease notes

  • A config option enables custom routing for the 2FA page.

    1.6.0release notes

  • WeChat is available as a social provider.

    1.5.6, 1.6.0release notesrelease notes

  • Adds an agent auth plugin.

    1.5.6release notes

  • Exports adapter test suites from this package path for adapter authors.

    1.5.6release notes

  • Adds experimental OpenTelemetry instrumentation.

    1.5.6release notes

  • Adds twoFactorPage to the configuration.

    1.5.6release notes

  • Allows a password to be optional when creating a user.

    1.5.0release notes

  • Rate limiting can use IPv6 prefixes with a configurable subnet size.

    1.5.0release notes

  • Adds an endpoint to delete an anonymous user.

    1.4.11, 1.5.0release notesrelease notes

  • Adds pagination to the list endpoint.

    1.5.0release notes

  • Supports an organization reference via metadata.

    1.5.0release notes

  • Adds a static method for throwing errors with error codes.

    1.5.0release notes

  • Adds a configId field to the ApiKey table, defaulting to "default".

    1.5.0release notes

  • Exposes whether an API key references a user or an organization.

    1.5.0release notes

  • The client can update custom additional session fields without re-authentication.

    1.5.0release notes

  • Exposes the Better Auth version at runtime through AuthContext.

    1.4.13, 1.5.0release notesrelease notes

  • baseURL can be configured to resolve dynamically from incoming requests, with allowed hosts, a fallback URL, and automatic protocol detection.

    1.5.0release notes

  • Adds a dedicated subpath export for getMigrations.

    1.5.0release notes

  • A new plugin and client support desktop authentication in Electron, including system-browser OAuth, custom-protocol code exchange, and secure cookie management.

    1.5.0release notes

  • A plugin adds type-safe error translations and automatic locale detection from headers, cookies, or sessions.

    1.5.0release notes

  • The Kysely adapter is available as a separately installable package for smaller bundles and independent adapter versioning.

    1.5.0release notes

  • A minimal package entry point can be used with separately installed database adapters to reduce bundle size.

    1.5.0release notes

  • A plugin turns Better Auth into an OAuth 2.1 authorization server with OIDC compatibility, token management, dynamic client registration, and per-endpoint rate limits.

    1.5.0release notes

  • Adds typed plugin discovery through getPlugin() and hasPlugin().

    1.5.0release notes

  • The Stripe plugin adds billingInterval tracking.

    1.5.0release notes

  • A framework-agnostic remote MCP auth client can verify tokens and protect resources when the MCP server is separate from the Better Auth instance.

    1.5.0release notes

  • Supports plugin fields in enumeration-protected responses.

    1.5.0release notes

  • Adds deferred session refresh support for read-replica database setups.

    1.5.0release notes

  • Error codes can be defined as typed identifiers; error responses now include a machine-readable code field supported by APIError.

    1.5.0release notes

  • The SSO SAML configuration can enable support for SP-initiated and IdP-initiated SAML Single Logout.

    1.5.0release notes

  • The Stripe plugin adds support for usage-based billing via lineItems.

    1.5.0release notes

  • Enables flexible subscription checkouts, including per-seat and usage-based billing.

    1.5.0release notes

  • A built-in Hono adapter integrates the remote MCP auth client with Hono servers.

    1.5.0release notes

  • The organization plugin now accepts a function for membershipLimit.

    1.5.0release notes

  • Adds full support for Entra provisioning.

    1.5.0release notes

  • The generate command accepts an adapter flag to tailor schema output to a database adapter without requiring a full Better Auth config file.

    1.5.0release notes

  • Adds a button mode for Google sign-in in the one-tap plugin.

    1.5.0release notes

  • Allows an organization to be a Stripe customer.

    1.5.0release notes

  • Allows PKCE to be disabled for admin-created clients.

    1.5.0release notes

  • Plugins can define their own rate limit rules.

    1.5.0release notes

  • PluginContext is now parameterized with Options.

    1.5.0release notes

  • Adds silent authentication support for OIDC.

    1.5.0release notes

  • Adds Railway as a social provider.

    1.5.0release notes

  • Adds configurable per-endpoint rate limits.

    1.5.0release notes

  • Adds the authorization response issuer identifier.

    1.4.19, 1.5.0release notesrelease notes

  • Adds configurable size limits for SAML responses and metadata.

    1.5.0release notes

  • The Stripe plugin adds support for subscription schedules using scheduleAtPeriodEnd.

    1.5.0release notes

  • Adds operations to list, get, and delete SCIM provider connections.

    1.5.0release notes

  • Allows SCIM provider connections to be linked to users.

    1.5.0release notes

  • Stripe plans can set a per-seat price for organization subscriptions, with member changes automatically syncing seat quantity.

    1.5.0release notes

  • Enables flexible subscription checkouts, including per-seat and usage-based billing.

    1.5.0release notes

  • An ordered array of versioned secrets supports non-destructive key rotation; new data uses the first key and decryption tries all configured keys.

    1.5.0release notes

  • Lets applications programmatically skip session refresh for specific requests.

    1.5.0release notes

  • The phone-number plugin can pass additional data during sign-up on verification.

    1.5.0release notes

  • The SSO API adds endpoints to list, get, update, and delete providers.

    1.5.0release notes

  • Organization admins can generate enterprise SAML onboarding links, monitor SSO connection status, and manage provider configurations through the Infrastructure dashboard.

    1.5.0release notes

  • Adds more control over subscription cancellation and termination.

    1.5.0release notes

  • Adds tracking for upcoming subscription changes.

    1.5.0release notes

  • Adds a two-factor cookie max-age option; server-side trusted-device expiration is also supported.

    1.5.0release notes

  • A new endpoint allows custom additional session fields to be updated without re-authentication.

    1.5.0release notes

  • Verification tokens can be stored in secondary storage instead of the database by setting storeInDatabase to false.

    1.5.0release notes

  • Adds a server-side endpoint to verify the current user's password.

    1.5.0release notes

  • OAuth endpoints support configurable rate limiting.

    1.4.19release notes

  • Adds disableImplicitLinking to accountLinking.

    1.4.18release notes

  • Adds button mode for Google sign-in.

    1.4.18release notes

  • Adds endpoints for listing and retrieving SSO provider details.

    1.4.18release notes

  • Adds a separate option for configuring the two-factor cookie max age.

    1.4.17release notes

  • Adds the skipTrailingSlashes option to advanced config.

    1.4.14release notes

  • The Stripe upgradeSubscription API now supports a locale option.

    1.4.14release notes

  • Organization functionality now allows rejecting expired invites and filtering pending invitations.

    1.4.13release notes

  • SCIM adds compatibility with Microsoft Entra ID.

    1.4.13release notes

  • The MCP integration adds a setup_auth tool.

    1.4.13release notes

  • Integrations now support both React and Solid flavors of TanStack Start.

    1.4.13release notes

  • OAuth supports a custom authorizationEndpoint option.

    1.4.12release notes

  • Adds refetch to useSession for all clients.

    1.4.12release notes

  • Adds the verifyPassword API.

    1.4.11release notes

  • Adds Gumroad login support to generic OAuth.

    1.4.11release notes

  • Enhances the Stripe plugin with organization customer support.

    1.4.11release notes

  • Adds handling for the customer.subscription.created webhook event.

    1.4.10release notes

  • Adds a disableRedirect option for subscription and billing.

    1.4.10release notes

  • Adds jwksPath support to the OAuth provider.

    1.4.10release notes

  • Adds webBrowserOptions for configuring openAuthSessionAsync.

    1.4.10release notes

  • Adds flexible subscription cancellation and termination management.

    1.4.10release notes

  • Adds supportsArrays support to the memory and MongoDB adapters.

    1.4.10release notes

  • Adds a global configuration option to defer actions such as sending email and updates until after the response is sent.

    1.4.9release notes

  • Verified domains are used to trust providers automatically.

    1.4.9release notes

  • Adds an OAuth 2.1-compliant plugin.

    1.4.9release notes

  • Adds Patreon as a social provider.

    1.4.9release notes

  • Adds an additionalFields option to the verification table schema.

    1.4.9release notes

  • Adds OIDC discovery support to SSO.

    1.4.7release notesrelease notes

  • One-time-token verification can now set a session cookie.

    1.4.7release notesrelease notes

  • Adds a helper for determining whether a domain is trusted.

    1.4.6release notesrelease notes

  • The Drizzle PostgreSQL adapter now supports JSON.

    1.4.6release notesrelease notes

  • The Kick OAuth provider now supports refresh tokens.

    1.4.6release notesrelease notes

  • Adds a client plugin for tracking the last login method in Expo.

    1.4.6release notesrelease notes

  • Adds a Better Auth command-line feature.

    1.4.4release notes

  • Supports trusted proxy headers when inferring the base URL.

    1.4.3release notes

  • Adds Vercel as an OAuth provider.

    1.4.3release notes

  • A custom JWKS endpoint can be configured.

    1.4.2release notes

  • The GitHub provider supports PKCE.

    1.4.2release notes

  • The api-key feature supports secondary storage.

    1.4.1release notes

  • Supports additional fields on accounts.

    1.4.0release notes

  • Supports storing account data in a cookie.

    1.4.0release notes

  • The Expo integration supports the account linking flow on mobile.

    1.4.0release notes

  • Adds join support to adapters and uses database joins across better-auth.

    1.4.0release notes

  • Supports phone number verification for account linking.

    1.4.0release notes

  • Allows customization of the random email generator.

    1.4.0release notes

  • Adds the AuthClient type helper.

    1.4.0release notes

  • Supports a custom callback for the authorization URL.

    1.4.0release notes

  • beforeCreateOrganization can pass an id through.

    1.4.0release notes

  • Adds the better-auth/minimal entry point.

    1.4.0release notes

  • Adds CaptchaFox support.

    1.4.0release notes

  • Allows passing a nonce for the OpenAPI plugin's CSP.

    1.4.0release notes

  • The accountLink callback receives ctx.

    1.4.0release notes

  • Supports custom response status codes.

    1.4.0release notes

  • Allows database transactions to be disabled.

    1.4.0release notes

  • Adds a verification URI to device authorization.

    1.4.0release notes

  • Adds the disableSignal client option.

    1.4.0release notes

  • Allows specifying permissions for the Discord provider.

    1.4.0release notes

  • Adds enum support for Drizzle schemas.

    1.4.0release notes

  • Provides preconfigured provider helpers for generic OAuth.

    1.4.0release notes

  • Supports custom token exchange for non-standard providers.

    1.4.0release notes

  • Adds returnHeaders to getSession so callers can receive response headers.

    1.4.0release notes

  • Exposes additional HTTP methods.

    1.4.0release notes

  • Infer.Session can infer the return type of a custom session.

    1.4.0release notes

  • Supports createdAt on organization invitations.

    1.4.0release notes

  • Supports a custom adapter option for JWT.

    1.4.0release notes

  • Adds key rotation for JWT.

    1.4.0release notes

  • Adds a JWT verification endpoint.

    1.4.0release notes

  • Client exports for Lynx are available.

    1.4.0release notes

  • Allows a raw function to be passed as middleware.

    1.4.0release notes

  • Adds an RP-Initiated Logout endpoint to the OIDC provider.

    1.4.0release notes

  • OpenAPI routes now include operationIds.

    1.4.0release notes

  • The organization plugin passes ctx to DB hooks.

    1.4.0release notes

  • Allows an organization slug to be used when listing members.

    1.4.0release notes

  • Allows configuring multiple passkey origins.

    1.4.0release notes

  • Adds the Paybin OAuth provider.

    1.4.0release notes

  • Adds the Polar OAuth provider.

    1.4.0release notes

  • Adds request state support.

    1.4.0release notes

  • Adds support for SCIM provisioning.

    1.4.0release notes

  • Automatically detects the client IP address server-side.

    1.4.0release notes

  • Adds chunking for session storage.

    1.4.0release notes

  • Supports siwe as a last login method.

    1.4.0release notes

  • Adds domain verification for SSO providers.

    1.4.0release notes

  • Adds an option to provide a login hint for SSO.

    1.4.0release notes

  • The SSOProvider type is exported.

    1.4.0release notes

  • Adds stateless session management.

    1.4.0release notes

  • Adds the storeStateStrategy option.

    1.4.0release notes

  • Adds the StripePlugin type.

    1.4.0release notes

  • Supports a custom callback for the token URL.

    1.4.0release notes

  • Trust device tokens can be refreshed.

    1.4.0release notes

  • Adds support for UUIDs.

    1.4.0release notes

  • Allows a custom verifyOTP implementation for phone-number authentication.

    1.4.0release notes

  • The OIDC provider allows the issuer to be configured.

    1.3.33release notes

Performance 14

  • The default in-memory replay store no longer slows down as request volume grows.

    1.7.25release notes

  • Expired verification rows are deleted at most once a minute per server instance instead of on every lookup.

    1.7.24release notes

  • Reduced installation size while preserving OpenTelemetry instrumentation attributes.

    1.7.11release notes

  • Server bundles are smaller because unused Zod locales are excluded.

    1.7.8release notes

  • Improved Auth0 domain normalization to avoid slow trailing-slash processing.

    1.7.3release notes

  • Improves performance for dynamic organization role permission checks.

    1.7.3release notes

  • getTestInstance uses a faster default password hasher to improve performance.

    1.7.2release notes

  • Compound table indexes were added to plugin database schemas.

    1.7.0release notes

  • Deletes sessions in parallel instead of sequentially, improving performance.

    1.6.29release notes

  • Improves performance in instrumented Next.js applications by reusing the next/headers import promise.

    1.6.26release notes

  • Added database indexes to OAuth provider foreign-key fields in generated schemas.

    1.6.10release notes

  • Secondary-storage API key lookups now run in parallel, improving performance.

    1.6.6release notes

  • Adds an index on the organizations slug field.

    1.4.7release notesrelease notes

  • Telemetry creation is lazy-loaded.

    1.4.0release notes

Behavior and default changes 55

  • Phone number verification codes use their own namespace.

    1.7.16release notes

  • The Stripe plugin adds support for Stripe SDK v23.

    1.7.13release notes

  • Email OTP sign-ins are now tracked in the last login method plugin.

    1.7.3release notes

  • Native OAuth clients using localhost loopback redirects can use ephemeral callback ports.

    1.7.3release notes

  • ID tokens issued alongside an access token now include the at_hash claim per OIDC Core §3.1.3.6.

    1.7.0release notes

  • The username plugin's separate displayUsername field can now be omitted.

    1.7.0release notes

  • OIDC user resolution for SSO sign-ins is transactional.

    1.7.0release notes

  • Confidential dynamic client registration clients can complete authorization-code flows without PKCE.

    1.7.0release notes

  • A refresh token reuse interval replays the same response for duplicate refresh requests.

    1.7.0release notes

  • resolveUser now applies to SAML sign-ins as well as OIDC sign-ins.

    1.7.0release notes

  • signOut() can now also sign users out of the OpenID provider.

    1.7.0release notes

  • signOut() can also sign users out of the OpenID provider.

    1.7.0release notes

  • Remains synchronous; use setItemAsync() when the write must be awaited.

    1.7.0release notes

  • Token introspection is consistent across opaque and JWT tokens and scoped to the audience.

    1.7.0release notes

  • The server logs Cloudflare Turnstile error codes and binding mismatches to help diagnose CAPTCHA verification failures.

    1.6.32release notes

  • The endpoint supports POST, allowing the access token to be passed in the Authorization header.

    1.6.15release notes

  • The oidc-provider and mcp plugins now default plain PKCE off.

    1.6.11release notes

  • The sign-in redirect response now includes enabled 2FA methods.

    1.6.2release notes

  • The Mongo adapter stores new UUIDs as native BSON UUIDs; existing string UUIDs continue to work without a data migration.

    1.6.0release notes

  • The Mongo adapter stores UUIDs as native BSON UUID values.

    1.5.6release notes

  • Supports name, image, and additional fields during OTP sign-in.

    1.5.0release notes

  • Email sign-in and sign-up accept form data in addition to JSON bodies.

    1.4.10, 1.5.0release notesrelease notes

  • Adds IPv6 address normalization and subnet support for rate limiting and IP-based rules.

    1.5.0release notes

  • Adds backward-compatibility support for OAuth clients that do not use PKCE.

    1.5.0release notes

  • The init callback receives the same mutable context reference used throughout the auth lifecycle and can return arbitrary keys for other plugins to access.

    1.5.0release notes

  • Rate limiting separates request and response phases so rejected requests are no longer counted against the limit.

    1.5.0release notes

  • Allows users to reduce the requested scopes during consent.

    1.5.0release notes

  • Provider configuration can now be asynchronous.

    1.5.0release notes

  • Allows trusted providers to be resolved dynamically.

    1.5.0release notes

  • The client falls back to this environment variable to detect the base URL when no explicit baseURL is configured.

    1.5.0release notes

  • The signUpOnVerification flow supports user additionalFields.

    1.4.19release notes

  • The default logger level is now warn.

    1.4.18release notes

  • SSO supports providers serving multiple domains.

    1.4.18release notes

  • Sets the default IPv6 subnet to 64.

    1.4.17release notes

  • The password field is optional when creating a user with the admin plugin.

    1.4.16release notes

  • Applies focus refetch for rate limiting regardless of session state.

    1.4.10release notes

  • Encrypted tokens handled by the OAuth proxy now have an expiry timestamp.

    1.4.9release notes

  • SAML assertion timestamps are validated with per-provider clock skew.

    1.4.7release notesrelease notes

  • Invited users can now see the organization name.

    1.4.6release notesrelease notes

  • Multi-session can now infer additional fields.

    1.4.6release notesrelease notes

  • Providers are trusted automatically when the domain verified flag is set.

    1.4.6release notes

  • Defaults to the database when one is provided.

    1.4.6release notesrelease notes

  • SCIM parsing now supports the custom scim+json media type.

    1.4.4release notes

  • The API key client can be called on the server side.

    1.4.0release notes

  • API keys are cascaded when a user is deleted.

    1.4.0release notes

  • The client refetches the session when browser state changes.

    1.4.0release notes

  • Changing an email no longer requires an active session for email verification.

    1.4.0release notes

  • Expo detection supports multiple cookie prefixes.

    1.4.0release notes

  • Subscriptions can be updated when a subscription already exists.

    1.4.0release notes

  • Allows generateOTP to return undefined.

    1.4.0release notes

  • Supports asynchronous imports in getAdapter.

    1.4.0release notes

  • The MongoDB adapter supports string IDs instead of requiring ObjectIDs.

    1.4.0release notes

  • The OAuth state cookie uses SameSite="none".

    1.4.0release notes

  • Client and server permission checks are decoupled.

    1.4.0release notes

  • The session cache is refreshed before it expires.

    1.4.0release notes

Tooling 8

  • Auth helpers now support additional session fields.

    1.7.4release notes

  • The testing utilities now support Vitest 5.

    1.7.4release notes

  • Adds diagnostics for required fields in existing Prisma schemas that Better Auth never writes.

    1.7.3release notes

  • A standalone CLI replaces the previous @better-auth/cli package and provides init, migrate, generate, and upgrade commands.

    1.5.0release notes

  • An interactive command scaffolds a Better Auth configuration file, database adapter, and framework integration.

    1.5.0release notes

  • The CLI checks /auth for auth.ts.

    1.4.2release notes

  • Adds a CLI for automatic index handling.

    1.4.0release notes

  • The CLI supports virtual module imports in Cloudflare Workers.

    1.4.0release notes

Fixes and other changes 708

  • The OAuth provider and requireMcpAuth call this custom JWT plugin method on every verification instead of caching its keys; expensive reads may require caching in the key store.

    1.7.26release notes

  • The request is passed again when the OAuth provider reads signing keys and when requireMcpAuth verifies a token.

    1.7.26release notes

  • Authorization URLs preserve empty query segments, including trailing or doubled & characters.

    1.7.26release notes

  • On Node, fetches no longer fail when the first DNS answer is unreachable, such as for hosts without outbound IPv6.

    1.7.26release notes

  • Client ID metadata fetches now work when the host is a public IPv6 literal.

    1.7.26release notes

  • Expired verification values are deleted when found, preventing them from being returned to repeated lookups.

    1.7.26release notes

  • These addresses are no longer misread as IPv4-mapped and are rejected as reserved.

    1.7.26release notes

  • Outbound checks no longer reject NAT64 addresses embedding a public IPv4 address, unblocking SSO discovery and CIMD fetches on DNS64 networks.

    1.7.26release notes

  • These endpoints no longer return a 500 error when a custom refresh token decrypt rejects an unrecognized value.

    1.7.26release notes

  • Revoking another client's already revoked refresh token no longer deletes the presenting client's own tokens.

    1.7.26release notes

  • Requesting the profile scope for a user with no name no longer returns a 500 error.

    1.7.26release notes

  • OAuth provider 401 invalid_client responses include a Basic challenge for the specified introspection, revocation, and invalid-signature cases.

    1.7.26release notes

  • Endpoint errors now preserve header names set earlier by a hook or endpoint, keeping them accessible to cross-origin browser clients.

    1.7.25release notes

  • Query parameters already present on a provider's authorization endpoint are no longer re-encoded, avoiding changes such as %20 becoming +.

    1.7.25release notes

  • DPoP requests no longer fail with a 500 error when deployments keep verification values only in secondary storage.

    1.7.25release notes

  • RP-initiated logout verifies this hint with in-process signing keys on runtimes that block requests to their own hostname.

    1.7.25release notes

  • Valid JWT access tokens are no longer reported as inactive when two auth instances share one jwt() plugin object.

    1.7.25release notes

  • Token verification reads signing keys from the auth instance on runtimes that block requests to their own hostname.

    1.7.25release notes

  • OAuth provider 401 challenges expose this header to cross-origin browser clients on every endpoint, including client registration and token endpoint authentication.

    1.7.25release notes

  • OAuth provider discovery no longer advertises endpoint URLs with a double slash when baseURL ends in a slash.

    1.7.24release notes

  • @better-auth/expo uses the better-call copy installed by better-auth instead of adding a second copy to Expo apps.

    1.7.24release notes

  • Plugin hook and endpoint errors no longer turn into generic 500 responses when an app installs more than one copy of better-call.

    1.7.24release notes

  • Official packages accept any better-call 1.4 patch release from 1.4.5 as a peer, helping plugins share one copy.

    1.7.24release notes

  • requireActiveAccessToken checks only the token; it does not enforce DPoP binding, so endpoints accepting DPoP-bound tokens need separate enforcement.

    1.7.24release notes

  • The OAuth provider warns when two extensions contribute the same discovery metadata key.

    1.7.23release notes

  • Sign-in callbacks are no longer missed on Windows and Linux when Chromium reorders or appends launch arguments.

    1.7.23release notes

  • The memory adapter no longer reuses stored row IDs after a delete when generateId is "serial".

    1.7.23release notes

  • Test files no longer share one MongoDB database, preventing parallel tests from deleting each other's data.

    1.7.23release notes

  • The PostgreSQL adapter now saves json fields whose value is an array.

    1.7.23release notes

  • Accepts tokens when the JWT plugin publishes its keys at jwks.remoteUrl and avoids a 500 on runtimes that block requests to their own hostname.

    1.7.23release notes

  • Protected resource requests using an unsupported authorization scheme or no scheme receive a Bearer challenge with resource_metadata.

    1.7.23release notes

  • Client session refresh listeners no longer accumulate on the server during SSR.

    1.7.22release notes

  • Cleaning up a client session subscription no longer throws when a test environment has torn down its globals.

    1.7.22release notes

  • Module-scope auth instances can handle requests when telemetry is enabled without a static baseURL.

    1.7.22release notes

  • Stripe webhooks for customers with no local subscription now log a clear warning instead of failing with a TypeError.

    1.7.22release notes

  • Refresh requests using deferSessionRefresh no longer fail with a 415 error in Next.js and Nuxt.

    1.7.22release notes

  • A rejected beforeDeleteOrganization hook no longer clears the session's active organization.

    1.7.22release notes

  • Failed requests using DPoP now receive a DPoP challenge instead of a Bearer challenge.

    1.7.22release notes

  • An expired session is no longer left in the request context after getSession returns null.

    1.7.22release notes

  • Session lookup no longer fails when a user.additionalFields entry references a table outside the Better Auth schema.

    1.7.22release notes

  • Tokens failing aud, iss, exp, or nbf claim checks now return 401 instead of 500.

    1.7.22release notes

  • Schema validation occurs on first use, preventing a validation error from being logged on every Cloudflare Workers cold start.

    1.7.22release notes

  • Every 401 response now includes a WWW-Authenticate challenge, including DPoP failures and requests with no token.

    1.7.22release notes

  • Rejected requests no longer become 500 errors, and invalid_token error details are included when a presented token fails verification.

    1.7.22release notes

  • Session polling now fires even when the runtime's navigator does not report connectivity.

    1.7.22release notes

  • An OAuth sign-up rejected by a user.create.before hook returning false no longer logs a TypeError.

    1.7.22release notes

  • Verification value consumption no longer hangs on Cloudflare Workers when an earlier request for the same identifier ends mid-query.

    1.7.22release notes

  • With serial ID generation, null filters on id and reference fields are no longer coerced to 0.

    1.7.21release notes

  • Runtime detection is exported from @better-auth/core/env.

    1.7.21release notes

  • Plugin packages no longer import from the better-auth root, preventing bundlers from emitting unused Kysely chunks when using better-auth/minimal.

    1.7.21release notes

  • Telemetry reports Cloudflare Workers as workerd instead of node when nodejs_compat is enabled.

    1.7.21release notes

  • Looking up the same valid device approval code twice at once no longer makes it appear invalid.

    1.7.21release notes

  • Discovery headers are sent to same-origin JWKS and kept on the discovery origin.

    1.7.21release notes

  • Failed deep link authentication is logged instead of causing an unhandled promise rejection in the main process.

    1.7.21release notes

  • The OAuth provider now returns the refresh token correctly when formatRefreshToken.encrypt is async.

    1.7.21release notes

  • Sign-ins using a genericOAuth provider with discoveryUrl no longer hang on Cloudflare Workers.

    1.7.21release notes

  • The MongoDB adapter adds indexes for schema fields marked unique or index, preventing duplicate users from concurrent sign-ups; fix index-build causes and restart if a build fails.

    1.7.21release notes

  • Rejected post-logout redirect URIs are reported as invalid_redirect_uri.

    1.7.21release notes

  • Startup schema checks and auth migrate no longer intermittently fail with missing-schema or missing-relation errors when other schemas are dropped concurrently.

    1.7.21release notes

  • contains, starts_with, ends_with, and case-insensitive filters match literal text instead of regex patterns with provider mongodb.

    1.7.21release notes

  • Derived IDs now have an ObjectId shape for Prisma ObjectId columns.

    1.7.21release notes

  • OAuth provider requests using resources no longer hang on Cloudflare Workers.

    1.7.21release notes

  • Session refresh extends the refreshed session's own SAML logout record.

    1.7.21release notes

  • SAML Single Logout continues working after session refresh.

    1.7.21release notes

  • Authentication requests no longer hang on Cloudflare Workers if the request that started schema validation ends before validation finishes.

    1.7.21release notes

  • SCIM now handles Groups with more than 100 members.

    1.7.21release notes

  • Sign-up emails are sent after the transaction commits.

    1.7.21release notes

  • Passkey accepts exact trusted origins under a wildcard allowed host.

    1.7.21release notes

  • Use updateMany instead of update when every row matching a non-unique filter should change.

    1.7.21release notes

  • Prisma adapter queries with eq null on MongoDB now also match records where the optional field was never set.

    1.7.20release notes

  • OAuth provider now supports HTTP deployments on private networks.

    1.7.20release notes

  • Prisma adapter incrementOne calls using mode: "insensitive" filters now match case-insensitively on PostgreSQL and MongoDB.

    1.7.20release notes

  • Memory adapter ne null where clauses no longer match records where the field was never set.

    1.7.20release notes

  • Defaults now accept issued access tokens when baseURL is only an origin by including the auth path in the default issuer, JWKS, and introspection URLs.

    1.7.20release notes

  • Prisma adapter update calls using mode: "insensitive" filters now match case-insensitively on PostgreSQL and MongoDB.

    1.7.20release notes

  • The list in secondary storage now receives an expiry when every remaining session has less than a second left.

    1.7.19release notes

  • Failed credential-account creation or password rejection no longer leaves behind a user that blocks retrying with the same email.

    1.7.19release notes

  • Calling auth.api.oauth2Consent({ headers, body }) from a server route no longer fails with request not found.

    1.7.19release notes

  • CLI notices no longer contaminate command output: JSON remains valid, auth secret prints only the secret line on stdout, and interactive-only tips stay in terminals.

    1.7.19release notes

  • CLI errors show their cause rather than a stack trace; config and database errors are readable, and failed auth mcp or auth ai steps no longer report success.

    1.7.19release notes

  • Client actions now honor the HTTP method in second-argument fetch options and do not attach a body for lowercase get or HEAD.

    1.7.19release notes

  • When validateClient rejects client_id, the endpoint now returns invalid_client instead of invalid_grant, matching /device/code and RFC 6749 section 5.2.

    1.7.19release notes

  • The proxy no longer logs a provider configuration error on every OAuth sign-in for social providers set up for ID token sign-in only.

    1.7.19release notes

  • When a provider refuses token refresh with a 200 status, the expired access token is no longer returned.

    1.7.19release notes

  • Filtering that matches no members or an offset past the last member no longer causes a syntax error on PostgreSQL and MSSQL.

    1.7.19release notes

  • OAuth client metadata is now written as an object in its JSON column, enabling native Postgres jsonb operators; rows stored as strings by earlier versions remain readable.

    1.7.19release notes

  • OAuth state stored in the database no longer causes state_mismatch during the daylight saving time fall-back hour on servers observing daylight saving time.

    1.7.19release notes

  • Query parameters are now documented for endpoints whose query schema is wrapped in z.optional(), including /get-session and Stripe's /subscription/list.

    1.7.19release notes

  • A missing, expired, or non-pending invitation now returns the INVITATION_NOT_FOUND code.

    1.7.19release notes

  • Overrides to modelName and field names no longer leak into other instances of the same plugin in one process.

    1.7.19release notes

  • A client secret missing the configured prefix now receives the standard invalid_client response: 401 with a Basic challenge for client_secret_basic, or 400 for client_secret_post.

    1.7.19release notes

  • MCP accepts plain-HTTP resource URLs on .localhost subdomains instead of rejecting them as non-HTTPS.

    1.7.19release notes

  • Failed wallet-address or account creation no longer leaves a user behind that prevents the wallet from signing in again.

    1.7.19release notes

  • Social sign-up no longer hangs on single-connection databases when the username plugin is enabled and the provider profile maps a username.

    1.7.19release notes

  • Using testWith: "mysql" no longer hangs, and each instance gets a separate database so several instances can run in one test file; requires a MySQL server at 127.0.0.1:3306 with the root password set to root_password.

    1.7.18release notes

  • Closes its own Postgres connection pool and SQLite database when the test file finishes; with Vitest's default sequence.hooks: "stack", afterAll hooks still run first and can use the instance.

    1.7.18release notes

  • Accepts introspected tokens when verifyOptions.typ is set.

    1.7.18release notes

  • Passkey registration and sign-in now work when one passkey() plugin is shared between auth instances where only some set baseURL.

    1.7.17release notes

  • MySQL create with generateId: "serial" no longer leaves an inserted row behind when the table reports no auto-increment id.

    1.7.17release notes

  • The phone number plugin no longer stores an empty phoneNumber on sign-up or replaces a verified number when linking an account with an empty phone number.

    1.7.17release notes

  • Remembered sign-ins and sign-ups now refresh their session even if an earlier sign-in in the same browser used rememberMe: false.

    1.7.17release notes

  • TOTP verification now accepts API key sessions so they can finish two-factor enrollment.

    1.7.17release notes

  • Trusted devices are no longer ignored when an app runs the two-factor sign-in step from its own hook on another sign-in path, such as email OTP.

    1.7.17release notes

  • Webhooks no longer attribute a subscription to the wrong record when records share a Stripe customer ID.

    1.7.16release notes

  • Email lookup no longer matches a different address on accent-insensitive database collations.

    1.7.16release notes

  • The command leaves unparseable MCP config files, including files with comments or trailing commas, unchanged and prints the config to add manually.

    1.7.15release notes

  • For Remix and React Router v7, the command generates an app/routes/api.auth.$.ts resource route that mounts auth.handler instead of creating a second auth instance with an unsupported database option.

    1.7.15release notes

  • The command no longer hangs during database migration.

    1.7.15release notes

  • The command no longer re-launches the CLI through npx auth@latest in an endless loop.

    1.7.15release notes

  • API keys in secondary storage now verify, load, and list when the storage client returns already-parsed JSON, such as @upstash/redis.

    1.7.15release notes

  • The HubSpot helper preserves access tokens containing reserved characters and returns null when no token is present instead of requesting /access-tokens/undefined.

    1.7.15release notes

  • Headers and cookies set by a non-returning before hook are preserved in the response; the endpoint's value wins when both set the same header or cookie.

    1.7.15release notes

  • Responses with an out-of-range status or invalid reason phrase no longer crash the process; the client is reported as invalid_client.

    1.7.15release notes

  • The endpoint no longer rejects usernames accepted at sign-up when validationOrder.username is post-normalization.

    1.7.15release notes

  • Non-string callbackURL query values are rejected with a 400 instead of causing a 500.

    1.7.15release notes

  • Non-string checkoutSessionId query values are rejected with a 400 instead of causing a 500.

    1.7.15release notes

  • The Vue client's useSession(useFetch) now returns a session during Nuxt SSR when baseURL is inferred from the environment.

    1.7.15release notes

  • Kakao sign-in now forwards loginHint so the Kakao Account login page opens with the ID field prefilled.

    1.7.14release notes

  • Two-factor TOTP now accepts imported Base32 secrets stored as base32:<secret>.

    1.7.14release notes

  • When session lookup fails, the original database error is preserved as error.cause.

    1.7.12release notes

  • The function now typechecks under exactOptionalPropertyTypes when it returns undefined for name, email, or image.

    1.7.12release notes

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

    1.7.12release notes

  • Fixed metadata refreshes overwriting concurrent administrator changes to discovered clients.

    1.7.11release notes

  • Plugin init returns with options: undefined now pass type checks under exactOptionalPropertyTypes.

    1.7.11release notes

  • Fixed repeated PostgreSQL migration diffs for int8 columns.

    1.7.11release notes

  • Fixed the OpenAPI schema to match the endpoint's redirect response.

    1.7.11release notes

  • Fixed Expo social account linking with ID tokens when a session cookie is present.

    1.6.17, 1.7.11release notesrelease notes

  • Fixed database-backed rate limiting returning an excessively large X-Retry-After value.

    1.7.11release notes

  • Google One Tap now honors the plugin-level autoSelect setting.

    1.7.10release notes

  • Fixed subpath imports and type resolution for this plugin path.

    1.7.10release notes

  • Fixed imports from this path failing with a not-exported error.

    1.7.10release notes

  • Fixed subpath imports and type resolution for this path.

    1.7.10release notes

  • Google One Tap now honors the plugin-level cancelOnTapOutside setting.

    1.7.10release notes

  • Errors for unknown OAuth client_id values now say client not found.

    1.7.10release notes

  • Device-code clients can refresh access for approved resources omitted from a token poll.

    1.7.10release notes

  • Valid DPoP proofs are no longer rejected for parameterized routes or URLs with trailing slashes.

    1.7.10release notes

  • Requests containing both supported and unsupported grants are no longer rejected.

    1.7.10release notes

  • Google One Tap no longer calls a prompt method unsupported by FedCM or retries skipped prompts.

    1.7.10release notes

  • Google One Tap sign-ins now record google as the last login method.

    1.7.10release notes

  • Google One Tap sign-ins now respect configured Google profile mapping and user info updates.

    1.7.10release notes

  • Native clients with HTTP loopback callbacks are no longer rejected when application type inference is enabled.

    1.7.10release notes

  • Unreachable JWKS endpoints are reported as server errors instead of invalid tokens.

    1.7.10release notes

  • findMany now respects ID sorting, avoiding potentially repeated or skipped paginated results.

    1.7.10release notes

  • Unknown OAuth clients now receive invalid_client instead of invalid_grant.

    1.7.10release notes

  • PKCE verifier errors now return the specified HTTP 400 response and error code.

    1.7.10release notes

  • Attempts to change cached trusted clients now return HTTP 400 instead of HTTP 500.

    1.7.10release notes

  • Unverifiable JWT access tokens no longer cause server errors at userinfo, introspection, or revocation endpoints.

    1.7.10release notes

  • Handlers finish before responses are sent, and failures are logged without interrupting requests.

    1.7.9release notes

  • After hooks run for writes retained after a failed request on adapters without transactions.

    1.7.8release notes

  • Valid AsyncLocalStorage initialized after importing Better Auth but before first use is recognized, and invalid runtime-provided values receive corrected errors in edge and browser fallbacks.

    1.7.8release notes

  • Atlassian user info errors are no longer mislabeled as Figma errors in logs.

    1.7.8release notes

  • Requests no longer hang after interrupted async context initialization.

    1.7.8release notes

  • SAML providers with linked accounts can change their post-login callback URL.

    1.7.8release notes

  • Native OAuth clients can use custom-scheme redirect URIs that include a host.

    1.7.8release notes

  • Device sessions are no longer missing, and automatic session switching no longer fails after cache eviction.

    1.7.8release notes

  • Drizzle sign-in, session refresh, and date filtering work with string-based date columns.

    1.7.8release notes

  • Using generateId: "uuid" no longer causes sign-in failures or replay-check and SIWE email handling issues.

    1.7.8release notes

  • Providers remain available after discovery fails at startup by retrying discovery on subsequent requests.

    1.7.8release notes

  • Sign-in tolerates up to 30 seconds of clock difference with identity providers.

    1.7.8release notes

  • Concurrent D1 queries on a shared auth instance no longer cause cross-request I/O errors.

    1.7.8release notes

  • Foreign keys are generated correctly when custom table names match another model key.

    1.7.8release notes

  • Sign-in no longer fails when cookieName or maxAge is explicitly undefined.

    1.7.8release notes

  • Callback URLs retain their percent-encoded characters during magic link verification.

    1.7.8release notes

  • Using mcp() no longer causes type errors with exactOptionalPropertyTypes.

    1.7.8release notes

  • Sign-in and account linking with ID tokens work when signing keys omit alg.

    1.7.8release notes

  • Authentication errors no longer mask the original transaction commit failure.

    1.7.8release notes

  • Failed transaction commits no longer leave transactions open and block other writes.

    1.7.8release notes

  • Concurrent writes retry transient errors instead of failing with transaction conflicts.

    1.7.8release notes

  • Startup resource-seeding failures no longer block authentication routes until restart.

    1.7.8release notes

  • Using oauthProvider() no longer causes type errors with exactOptionalPropertyTypes.

    1.7.8release notes

  • OIDC sign-in works when the mapped email claim contains a list of addresses.

    1.7.8release notes

  • Organization plugin types no longer cause errors when skipLibCheck: false.

    1.7.8release notes

  • SAML providers with linked accounts accept IdP signing certificate rotation.

    1.7.8release notes

  • SCIM requests no longer silently ignore attribute names with different letter case.

    1.7.8release notes

  • Concurrent SCIM updates return 409 instead of 500 when a unique value is already claimed.

    1.7.8release notes

  • Inactive users with an existing externalId can be reprovisioned through SCIM.

    1.7.8release notes

  • SCIM User and Group requests accept nullable attributes sent as JSON null.

    1.7.8release notes

  • Nullable attributes sent as JSON null are accepted in User and Group requests.

    1.7.8release notes

  • Session failures no longer leave sign-ups, passkey registrations, or SSO sign-ins in an inconsistent state.

    1.7.8release notes

  • SSO provider registration and updates accept partial mapping values that omit defaulted fields.

    1.7.8release notes

  • Completed one-time Stripe checkouts are no longer reported as webhook failures.

    1.7.8release notes

  • SvelteKit 3 is included in the supported peer dependency range.

    1.7.8release notes

  • Phone number password resets use the configured verifyOTP callback.

    1.7.8release notes

  • The active organization now refreshes after sign-in when a session hook selects the initial organization.

    1.7.7release notes

  • CAPTCHA errors now include the JSON Content-Type header.

    1.7.7release notes

  • Prevents consumeOne from deleting a record when a concurrent write invalidates its original condition.

    1.7.7release notes

  • Rate-limit errors now include the JSON Content-Type header.

    1.7.7release notes

  • Older responses no longer overwrite newer results when requests overlap.

    1.7.6release notes

  • Fixed automatic seat updates after an organization resubscribes, even when canceled subscriptions remain in its history.

    1.7.6release notes

  • Fixed schema validation for capitalized custom Prisma model names.

    1.7.6release notes

  • Fixed schema validation for Cloudflare D1 when the Kysely dialect cannot introspect the database.

    1.7.6release notes

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

    1.7.6release notes

  • Fixed social account linking through the OAuth Proxy plugin.

    1.7.6release notes

  • Fixed hydration mismatches when session or plugin auth queries resolve before streamed components hydrate.

    1.7.6release notes

  • Fixed schema validation for SQLite-generated primary keys, including INTEGER PRIMARY KEY columns without AUTOINCREMENT.

    1.7.6release notes

  • Removed the unused optional peer dependency to prevent installation conflicts.

    1.7.5release notes

  • Improved server-side logging for Cloudflare Turnstile verification failures.

    1.7.5release notes

  • Fixed unnecessary pacing when metadata cannot be cached.

    1.7.5release notes

  • Fixed database option type inference outside Cloudflare Workers.

    1.6.33, 1.7.5release notesrelease notes

  • Fixed lazy database initialization when using Drizzle relations.

    1.7.5release notes

  • Fixed index validation for existing string columns.

    1.7.5release notes

  • Fixed migrations incorrectly identifying tables and views across schemas.

    1.7.5release notes

  • Improved schema validation for the adapter.

    1.7.4release notes

  • Fixed storage of multibyte session data.

    1.7.4release notes

  • Fixed bundling when the optional OpenTelemetry API is not installed.

    1.7.4release notes

  • Restores compatibility with 1.6 account schemas by identifying accounts with (providerId, accountId) instead of issuer; users who applied the 1.7 issuer schema should follow the upgrade guide for cleanup.

    1.7.3release notes

  • Reports installed dependency versions instead of declared specifiers.

    1.7.3release notes

  • Can now complete when generated setup groups have no dependencies.

    1.7.3release notes

  • Skips unsupported dependency specifiers and provides a clear warning.

    1.7.3release notes

  • Fixes discovery failures with ERR_INVALID_IP_ADDRESS on supported Node.js versions.

    1.7.3release notes

  • TikTok sign-in and token refresh now work with the documented clientKey and clientSecret options.

    1.7.3release notes

  • Restores consumeOne as an optional method for custom database adapters.

    1.7.3release notes

  • Fixes getSession failures when cookie caching is disabled and cached session cookies remain.

    1.7.3release notes

  • Restores incrementOne as an optional method for custom database adapters.

    1.7.3release notes

  • Generic OAuth discovery failures no longer take down the authentication API.

    1.7.3release notes

  • Generated OpenAPI required fields now align with runtime validation.

    1.7.3release notes

  • Callback hooks are no longer skipped after proxied OAuth sign-ins, and server state is preserved when callback cookies are unavailable.

    1.7.3release notes

  • Prevents duplicate session requests and hydration mismatches in Nuxt, and adds a type-safe integration for the Vue client's useSession hook.

    1.7.3release notes

  • Auth request logs now respect the configured logger, log level, and disabled setting.

    1.7.2release notes

  • Registration now works when clients share at least one supported grant with the server.

    1.7.2release notes

  • Programmatic migrations now work on Cloudflare D1 while retaining existing-index validation.

    1.7.2release notes

  • Async context is preserved in Cloudflare Workers bundles with multiple runtime conditions.

    1.7.2release notes

  • Missing Drizzle schema fields in compound where clauses are now validated.

    1.7.2release notes

  • Invalid signed session data in the cookie cache now produces warnings.

    1.7.2release notes

  • The current auth endpoint context can now be accessed synchronously and optionally.

    1.7.2release notes

  • Disabled MyISAM indexes no longer satisfy migration index checks.

    1.7.2release notes

  • Permanent user bans now clear expiration dates left by previous temporary bans.

    1.7.2release notes

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

    1.7.2release notes

  • Relative redirect URLs containing fragments are now handled correctly.

    1.7.2release notes

  • Same-origin form submissions are accepted with Referrer-Policy: no-referrer, while untrusted origins remain rejected.

    1.7.2release notes

  • Relative callback URLs containing ~ are now allowed by trusted-origin checks.

    1.7.2release notes

  • One-to-one Drizzle relations now work when usePlural is enabled.

    1.7.2release notes

  • The CLI refuses to add required columns without default values to tables that already contain data.

    1.7.1release notes

  • Caching follows shared-cache freshness rules, including s-maxage precedence, conditional revalidation, immediate staleness for invalid or duplicate freshness directives, and convergence of concurrent refreshes.

    1.7.1release notes

  • Trusted server code can retain a terminal connection binding before a dynamic SCIM connection's first authenticated request when supplying a provisioning domain during decommissioning.

    1.7.1release notes

  • Test instances support native database transactions for PostgreSQL and MySQL.

    1.7.1release notes

  • SSO provider registration allows reusing a SCIM connection ID because SCIM connections no longer participate in the authentication provider namespace.

    1.7.1release notes

  • Restored Account.accountId alongside the required issuer, preserving issuer-scoped account identities.

    1.7.0release notes

  • Voluntary and essential acr claim requests are handled according to OIDC Core.

    1.7.0release notes

  • auth migrate can add required columns with static defaults and nullable unique columns to existing tables.

    1.7.0release notes

  • Form-encoded POST authorization requests are accepted, while unsupported OIDC request objects are rejected.

    1.7.0release notes

  • Raw database instances passed directly as database now support native adapter transactions, matching explicit { db } and { dialect } config shapes.

    1.7.0release notesrelease notes

  • The drizzle-kit peer dependency range was widened.

    1.7.0release notes

  • Registration preserves client key metadata and the requested authentication method.

    1.7.0release notes

  • Auth config loading now supports the export default { auth } module shape.

    1.7.0release notes

  • Revocation reports unsupported_token_type for a JWT access token.

    1.7.0release notes

  • Scope errors return 403 with an RFC 6750 insufficient_scope WWW-Authenticate challenge naming every missing scope, allowing clients to request all needed scopes in one authorization request.

    1.7.0release notesrelease notes

  • Nonce-bound confidential clients can request offline_access without PKCE.

    1.7.0release notes

  • Exported the generated binding so drizzle-kit can emit CREATE SCHEMA for custom PostgreSQL namespaces.

    1.7.0release notes

  • Client assertions may use the OpenID Provider issuer as their audience.

    1.7.0release notes

  • The token endpoint requires redirect_uri only when the authorization request included one.

    1.7.0release notes

  • The logout flow supports form-encoded POST requests and confirmation pages.

    1.7.0release notes

  • String Boolean values for SCIM User active and the primary sub-attribute are parsed case-insensitively at HTTP ingress, improving Microsoft Entra interoperability.

    1.7.0release notesrelease notes

  • Filtered SCIM PATCH values are created when no target matches instead of rejecting the request.

    1.7.0release notes

  • Token revocation and back-channel logout delivery wait until session deletion commits.

    1.7.0release notes

  • UserInfo accepts bearer tokens sent in a form-encoded request body.

    1.7.0release notes

  • The profile and email scope claims remain on the UserInfo response rather than ID tokens.

    1.7.0release notes

  • Fixed an ACCOUNT_NOT_FOUND error when retrieving an access token after stateless OAuth sign-in links a new provider to an existing user.

    1.6.34release notes

  • Fixed SAML sign-in for providers using samlConfig.callbackUrl as their ACS URL without spMetadata.metadata.

    1.6.34release notes

  • Concurrent cold-start requests no longer intermittently lose authentication or transaction context due to an async storage initialization race.

    1.6.30release notes

  • Domain verification snapshots provider domains at request start and returns 409 with this error if they change during DNS resolution, allowing callers to reload and retry.

    1.6.29release notesrelease notes

  • Restores client plugin declaration compatibility for downstream TypeScript consumers.

    1.6.28release notes

  • Auth endpoint types now align with better-call.

    1.6.27release notes

  • The CLI now aligns installed packages with the running CLI version.

    1.6.27release notes

  • Prevents duplicate session requests during React Suspense retries while preserving revalidation for interrupted refreshes.

    1.6.27release notesrelease notes

  • Completes even when no background task handler is configured.

    1.6.26release notes

  • Allows retrying password reset after an invalid password is entered.

    1.6.26release notes

  • Passes the verification type to custom OTP generators during email OTP sign-up.

    1.6.26release notes

  • Skips invalid secondary-storage session entries without discarding other valid sessions.

    1.6.26release notes

  • Uses the transaction-scoped adapter to prevent SQLite deadlocks and ensure keys commit with their surrounding transaction on Postgres and MySQL.

    1.6.26release notes

  • No longer collapses createAuthClient type inference when combined with other client plugins.

    1.6.26release notes

  • Uses SCAN instead of KEYS so large keyspaces no longer block the Redis server.

    1.6.26release notes

  • Preserves Apple user data from form_post callbacks.

    1.6.26release notes

  • No longer collapses createAuthClient type inference when combined with other client plugins.

    1.6.26release notes

  • $fetch is now exposed on the Solid client.

    1.6.25release notes

  • Internal adapter queries are no longer routed to the wrong table when a built-in table's modelName matches another table's schema key.

    1.6.25release notes

  • Apple OAuth now sends the PKCE code challenge during authorization, preventing token exchange failures.

    1.6.25release notes

  • $store is now exposed on the Solid client.

    1.6.25release notes

  • An initialization race on serverless cold starts no longer causes intermittent "No request state found" errors.

    1.6.24release notes

  • The command no longer fails when the config imports the not-yet-generated output file, such as on a Convex first run.

    1.6.24release notes

  • Auth query revalidation and signal listeners are restored after a client component remounts.

    1.6.24release notes

  • The hook receives the endpoint context as its second argument.

    1.6.24release notes

  • SQLite migration diffs recognize BIGINT as a valid number type, preventing spurious pending changes on rate limiter columns.

    1.6.24release notes

  • The index signature type is more precise.

    1.6.24release notes

  • Remote MCP auth 401 challenge headers are exposed to browser clients.

    1.6.24release notes

  • Schema generation no longer produces duplicate indexes for fields marked both unique and index.

    1.6.24release notes

  • The endpoint forwards multiple Set-Cookie headers separately so the browser does not drop the transfer-token cookie during OAuth handoff.

    1.6.24release notes

  • Exact schema key matches take precedence over modelName aliases, preventing adapter queries from being misrouted when names collide.

    1.6.24release notes

  • IdP-initiated SAML sign-ins in split-origin deployments redirect to the configured application URL instead of the authentication server.

    1.6.24release notes

  • Plugin user fields such as username and displayUsername are included in the /sign-up/email and /update-user request bodies.

    1.6.24release notes

  • Invitations use database-generated IDs when advanced.database.generateId is configured, matching other models.

    1.6.24release notes

  • The method no longer fails with "User not found for member" for organizations with more than about 100 members.

    1.6.24release notes

  • Drizzle schema generation adds disambiguating relationName values for tables with multiple foreign keys to the same model.

    1.6.24release notes

  • Auth requests no longer fail when request cloning throws an error inside verification callbacks.

    1.6.24release notes

  • With throw set to true, the data type no longer incorrectly excludes null.

    1.6.24release notes

  • Fixed affected row counting for D1 and postgres-js adapters.

    1.6.23release notes

  • Fixed string default values not being properly escaped in the generated Drizzle schema.

    1.6.23release notes

  • SCIM write-path operations now correctly honor the active attribute.

    1.6.22release notes

  • adapter.update returns null when no matching row is found.

    1.6.21release notes

  • The CLI generates BETTER_AUTH_SECRET values with 32 characters instead of 16.

    1.6.21release notes

  • Calling deviceAuthorization() without a schema option no longer throws a ZodError under Zod v4.

    1.6.21release notes

  • disableMigration: true is respected on plugin schema tables during generation and runtime migration.

    1.6.21release notes

  • OAuth sign-up and account linking ignore provider profile values for fields marked input: false.

    1.6.21release notes

  • Declaring inherited APIError properties fixes TypeScript inference errors.

    1.6.20release notes

  • English language fallback behavior is fixed.

    1.6.20release notes

  • Account-linking logs now route through the configured logger.

    1.6.20release notes

  • Array additionalField default values are now serialized correctly in the Drizzle schema generator.

    1.6.19release notes

  • Auth client return types are emitted correctly in TypeScript declaration builds.

    1.6.19release notes

  • The generate command now handles a directory path passed to --output.

    1.6.19release notes

  • Password reset tokens now work with the Drizzle MySQL adapter after being consumed.

    1.6.19release notes

  • Fixed cookie cache fallback lookup.

    1.6.19release notes

  • Token rotation, revocation, two-factor backup-code regeneration, device-code claiming, and organization invitation acceptance no longer fail on Prisma or MongoDB servers older than 5.0.

    1.6.19release notes

  • Clearing cross-subdomain cookies now includes the domain.

    1.6.19release notes

  • Callback, session, and passkey route schemas are now valid for client generators.

    1.6.19release notes

  • SCIM user filter values are no longer logged when listing users.

    1.6.19release notes

  • Errors from sendVerificationEmail are now surfaced to the client.

    1.6.19release notes

  • Cache cookies near the browser's per-cookie size limit are split into chunks instead of being silently dropped.

    1.6.19release notes

  • Single-use verification flows reuse active transactions to avoid hanging on connection-limited database adapters.

    1.6.19release notes

  • Expected authentication validation failures now log as warnings instead of errors.

    1.6.18release notes

  • Fixes compatibility with SQL Server.

    1.6.18release notes

  • Prevents the cache from growing on every access token verification.

    1.6.18release notes

  • No longer discards concurrent writes when a transaction fails.

    1.6.18release notes

  • update and delete are no-ops on empty filters instead of modifying every row.

    1.6.18release notes

  • Accurately serializes Zod request schemas, including optional, nullable, intersected, and record-shaped types.

    1.6.18release notes

  • Bun and Node drivers correctly report affected row counts and inserted row IDs; the Bun driver also supports multi-parameter binding.

    1.6.18release notes

  • Preserves account cookies when switching users in the same browser session.

    1.6.17release notesrelease notes

  • Creates a credential account for users with only social or magic-link accounts, allowing direct password assignment without manually editing the account table.

    1.6.17release notes

  • The CLI resolves SvelteKit, Vite asset, and Cloudflare Workers virtual-module imports when loading the auth config.

    1.6.17release notes

  • Times out after 10 seconds so slow or unreachable captcha providers do not hang requests indefinitely.

    1.6.17release notesrelease notes

  • Avoids duplicate requests from focus and other browser events, reduces unnecessary re-renders through stable client hook data references, and prevents loading state from sticking after unmount during a request.

    1.6.17release notes

  • Generic OAuth sign-in works when userinfo lacks sub or id and the mapping function derives the account ID.

    1.6.17release notes

  • Concurrent writes are not discarded when a transaction fails; empty-filter update and delete are no-ops, and updateMany returns the affected-row count.

    1.6.17release notes

  • Model id fields are now marked as required.

    1.6.17release notes

  • Surfaces errors instead of silently reporting success when a failure is not a missing-record error.

    1.6.17release notesrelease notes

  • Schema regeneration updates existing Prisma field types, including emitting BigInt or Int when bigint configuration changes.

    1.6.17release notes

  • The CLI skips Unsupported() fields when regenerating the Prisma schema.

    1.6.17release notes

  • Removes user membership through the organization adapter so team memberships and member-removal hooks are applied correctly.

    1.6.17release notesrelease notes

  • Bun and Node Kysely drivers report affected row counts and inserted row IDs correctly; Bun parameter binding and SQL Server consumeOne are also fixed.

    1.6.17release notes

  • Account information and tokens are read correctly when different server instances handle sign-in and subsequent requests.

    1.6.17release notes

  • Preserves pending invitations by removing only the deleted team's reference rather than invalidating the invitations.

    1.6.17release notesrelease notes

  • Caches signing keys per auth instance rather than fetching them from the database on every request.

    1.6.17release notesrelease notes

  • Returns the number of rows affected, as the adapter contract specifies.

    1.6.17release notesrelease notes

  • Accepts custom session fields inferred through inferAdditionalFields.

    1.6.17release notes

  • Works without an email by assigning a stable placeholder; mapProfileToUser can supply a real one.

    1.6.17release notesrelease notes

  • SCIM provisioning returns 409 when a user with the same email already exists unless linkExistingUsers is set.

    1.6.16release notes

  • The setting is now forwarded to samlify's ServiceProvider when validating SAML responses, fixing ERR_SUBJECT_UNCONFIRMED errors.

    1.6.15release notes

  • Improved cookie regex character ranges for more accurate cookie parsing.

    1.6.15release notes

  • The hook now runs correctly when OAuth authorization resumes after sign-in, account selection, or consent.

    1.6.15release notes

  • Returns USER_NOT_FOUND instead of a generic 500 when the target user does not exist.

    1.6.15release notes

  • Generated database schemas now allow null values for optional fields.

    1.6.14release notes

  • Expo splits oversized account cookies across multiple storage keys, preventing sign-in loss when a provider issues large tokens.

    1.6.13release notes

  • A non-numeric value returned by an adapter's deleteMany now surfaces a clear error instead of silently failing.

    1.6.13release notes

  • Organization logo now accepts null on create and update, allowing users to clear an existing logo.

    1.6.13release notes

  • When only secondaryStorage is configured, storeStateStrategy now defaults to database instead of cookie, preventing oversized-cookie errors.

    1.6.13release notes

  • The option is now applied when linking accounts through the standard OAuth redirect flow.

    1.6.13release notes

  • verifyApiKey no longer rejects keys created under a non-default configId when the request omits configId.

    1.6.13release notes

  • The missing AdminClientOptions export is now available.

    1.6.12release notes

  • Accepts client_secret values containing colons.

    1.6.12release notes

  • Adds better-call as a peer dependency to fix TypeScript TS4023 declaration emit errors.

    1.6.12release notes

  • Where queries no longer drop OR clauses when mixed with AND conditions.

    1.6.12release notes

  • Improves URL normalization and Stripe search query escaping to handle edge cases correctly.

    1.6.12release notes

  • The SQLite introspector no longer incorrectly reports tables as views.

    1.6.12release notes

  • Verify-email links URL-encode callbackURL for OAuth account linking and username sign-in.

    1.6.12release notes

  • Returns NOT_FOUND when the referenced client no longer exists.

    1.6.12release notes

  • Tolerates missing spaces after ; separators, preventing some proxy users from being treated as logged out.

    1.6.12release notes

  • Percent-encodes cookie values containing special characters such as ;, ", or \.

    1.6.12release notes

  • Rolls back on failure instead of leaving orphaned rows.

    1.6.12release notes

  • Email OTP sign-in no longer fails with captcha errors under default captcha settings.

    1.6.12release notes

  • OAuth state validation failures now redirect to the per-flow errorCallbackURL instead of the default error page.

    1.6.12release notes

  • Hook rejections in SSO OIDC and SAML callbacks now redirect to errorCallbackURL instead of returning a JSON error.

    1.6.12release notes

  • Migration field indexes are now ordered correctly.

    1.6.12release notes

  • Now respects the dynamic baseURL protocol option.

    1.6.12release notes

  • Uses a robust cascading fallback strategy wrapped in a transaction.

    1.6.12release notes

  • Supports path-prefixed issuers.

    1.6.12release notes

  • Forwards state_not_found, state_invalid, and state_mismatch instead of the generic please_restart_the_process code.

    1.6.12release notes

  • Forwards specific error codes instead of collapsing all errors into user_creation_failed.

    1.6.12release notes

  • OAuth proxy flows no longer fail with state_mismatch when production and preview environments use different secrets.

    1.6.12release notes

  • OpenAPI schema generation emits unique operationIds for endpoints that expose multiple HTTP methods.

    1.6.12release notes

  • Invitations no longer route users to the wrong team when team IDs contain a comma.

    1.6.12release notes

  • The missing OrganizationClientOptions export is now available.

    1.6.12release notes

  • Properly decodes escape sequences in quoted strings.

    1.6.12release notes

  • Prevents a crash when transports is undefined.

    1.6.12release notes

  • The request is cloned before being passed to the callback, avoiding request mutation.

    1.6.12release notes

  • Refresh headers are now forwarded when resolving sessions.

    1.6.12release notes

  • Accepts hashed nonces for native iOS sign-in.

    1.6.12release notes

  • URL-encodes error values in redirect query strings.

    1.6.12release notes

  • Cache refresh preserves the real session expiry instead of resetting it.

    1.6.12release notes

  • Synthetic users no longer include extra fields.

    1.6.12release notes

  • The option now accepts any valid IPv6 prefix length from 0 to 128 instead of a narrow set of values.

    1.6.11release notes

  • The response now includes an error code so clients can identify why the email change was rejected.

    1.6.11release notes

  • Added an internal adapter method for atomically consuming verification rows.

    1.6.11release notes

  • The anonymous plugin now calls this when email verification triggers auto sign-in.

    1.6.11release notes

  • Fixed a TS2742 type error when using additionalFields in the organization plugin by adding missing re-exports.

    1.6.10release notes

  • The command no longer generates broken MySQL and PostgreSQL Kysely database configs.

    1.6.10release notes

  • Added a compatibility alias for the SIWE nonce endpoint.

    1.6.10release notes

  • The bearer plugin no longer writes duplicate cookie entries when merging the session token into request headers.

    1.6.10release notes

  • This option now takes effect when re-inviting the same email instead of always returning USER_IS_ALREADY_INVITED_TO_THIS_ORGANIZATION.

    1.6.10release notes

  • Fixed the captcha plugin breaking the email-otp flow.

    1.6.10release notes

  • Instrumentation imports now use a no-op entry when OpenTelemetry is not installed.

    1.6.10release notes

  • Corrected email casing in one-tap, email-otp, and email-verification flows.

    1.6.10release notes

  • Parameters no longer override internally managed Stripe Checkout Session fields such as success_url, cancel_url, customer, and line_items.

    1.6.10release notes

  • Improved link accessibility.

    1.6.10release notes

  • Redirects no longer cause a TypeError when OAuth error descriptions contain non-ASCII characters.

    1.6.10release notes

  • Exported helper types needed for portable downstream TypeScript declaration emit.

    1.6.10release notes

  • The callback now receives the post-update subscription row instead of a stale snapshot.

    1.6.10release notes

  • The callback now receives the post-update subscription row instead of a stale pre-update snapshot.

    1.6.10release notes

  • The callback now receives the raw stripeSubscription object.

    1.6.10release notes

  • Organization invitations now accept dynamic access control roles.

    1.6.10release notes

  • When passkey autofill authentication cannot start, it now returns a handled cancellation instead of an unhandled error.

    1.6.10release notes

  • Corrected the OpenAPI schema's required fields for this endpoint.

    1.6.10release notes

  • Exposed refreshUserSessions on the internal adapter.

    1.6.10release notes

  • Made sessionId optional in refresh token types to match the schema.

    1.6.10release notes

  • Redirect responses from social sign-in and magic-link endpoints no longer emit duplicate Set-Cookie headers.

    1.6.10release notes

  • callbackURL is no longer ignored and now redirects correctly like signIn.email.

    1.6.10release notes

  • The endpoint no longer throws NOT_FOUND for providers configured via defaultSSO.

    1.6.10release notes

  • The hook no longer retains a previous user's role after sign-out in SPA flows.

    1.6.10release notes

  • useSession now revalidates after admin impersonation starts or stops.

    1.6.10release notes

  • The adapter factory now resolves instrumentation to the pure variant in edge and browser environments.

    1.6.9release notes

  • Fixed incompatibility with TypeScript's exactOptionalPropertyTypes compiler option.

    1.6.8release notes

  • Fixed support for passing id through the beforeCreateTeam and beforeCreateInvitation hooks.

    1.6.8release notes

  • Fixed the fallback for OAuth providers that may omit email from their profile response.

    1.6.8release notes

  • Response headers are no longer lost when an APIError is thrown.

    1.6.7release notes

  • callbackOnVerification is now called when updatePhoneNumber is enabled.

    1.6.7release notes

  • A no-op instrumentation module is served in browser and edge runtimes to prevent runtime errors.

    1.6.7release notes

  • Parsing OAuth2 state no longer crashes when the request body is undefined.

    1.6.7release notes

  • Passkey authentication verification now returns the user.

    1.6.7release notes

  • When using auth.api, the userinfo endpoint now reads the Authorization header from request context.

    1.6.7release notes

  • Boolean coercion of the disableRefresh query parameter is fixed in custom session validation.

    1.6.6release notes

  • An ESM/CJS compatibility issue when loading samlify is fixed.

    1.6.6release notes

  • @opentelemetry/api is now an optional peer dependency.

    1.6.6release notes

  • Passing phoneNumber: null to updateUser now removes the phone number.

    1.6.6release notes

  • Session loading reads cached data from SecureStore on app startup, avoiding a login screen flash for returning users.

    1.6.6release notes

  • Forwarded Set-Cookie headers now preserve the Partitioned attribute.

    1.6.6release notes

  • Inference of team additional fields in the organization plugin is corrected.

    1.6.6release notes

  • Fixed sessions not refreshing after /change-password and /revoke-other-sessions.

    1.6.5release notes

  • Fixed UUIDs set through forceAllowId in database hooks being ignored by PostgreSQL adapters when advanced.database.generateId is set to uuid.

    1.6.4release notes

  • Fixed dynamic baseURL resolution from request headers for direct auth.api calls.

    1.6.3release notes

  • Unauthenticated dynamic client registration now silently overrides confidential auth methods to public, improving compatibility with MCP clients.

    1.6.3release notes

  • Fixed the nullable schema for the get-session endpoint in the OpenAPI 3.1 spec.

    1.6.3release notes

  • Fixed a race condition that caused excessive requests per second in the client.

    1.6.3release notes

  • Corrected the operationId for the requestPasswordResetCallback endpoint in the OpenAPI spec.

    1.6.3release notes

  • Checkout and upgrade flows now omit quantity for metered prices.

    1.6.3release notes

  • Fixed multiple SAML response processing bugs, including ACS URL generation, encryption field handling, and provider config parsing.

    1.6.3release notes

  • Backup code updates now respect the configured storage strategy after verification.

    1.6.3release notes

  • Fixed CLI path alias resolution for extended configs and mid-path wildcards.

    1.6.3release notes

  • Fixed account collisions across providers in the link-social callback.

    1.6.2release notes

  • Multi-valued query parameters no longer collapse through prompt redirects.

    1.6.2release notes

  • Replaced the cookie probe with header-based RSC detection to fix infinite router refresh loops.

    1.6.2release notes

  • Signed SAML AuthnRequests now include RelayState.

    1.6.2release notes

  • Fixed SAMLResponse decoding failures caused by line-wrapped base64.

    1.6.2release notes

  • Unverified TOTP enrollment no longer blocks sign-in.

    1.6.2release notes

  • All checkPassword failures return INVALID_PASSWORD.

    1.6.1release notes

  • Endpoint instrumentation always uses the route template.

    1.6.1release notes

  • getSession is accessible in the generic Auth<O> context.

    1.6.1release notes

  • Account cookie comparison now uses the provider accountId rather than an internal id.

    1.6.0release notes

  • The endpoint now uses accountId instead of an internal id.

    1.6.0release notes

  • Stateless cookieCache maxAge now matches session.expiresIn.

    1.6.0release notes

  • Deprecated createAdapter and type exports were restored for backwards compatibility.

    1.5.5, 1.6.0release notesrelease notes

  • customIdTokenClaims can now override standard claims, including acr and auth_time.

    1.6.0release notes

  • The OAuth provider enforces database-backed sessions when secondary storage is enabled.

    1.6.0release notes

  • The Prisma adapter uses deleteMany when deleting by a non-unique field.

    1.5.2, 1.6.0release notesrelease notes

  • FedCM is enabled to suppress Google GSI deprecation warnings.

    1.6.0release notes

  • OAuth proxy callback parameters are now read from the body for form_post.

    1.6.0release notes

  • generic-oauth now uses the discovery userinfo endpoint instead of hardcoded URLs.

    1.5.1, 1.6.0release notesrelease notes

  • The verification endpoint now returns additional fields.

    1.6.0release notes

  • Password hashing now uses non-blocking scrypt to avoid blocking the event loop.

    1.6.0release notes

  • Passwordless users can now manage 2FA.

    1.6.0release notes

  • The PostgreSQL migration now uses CREATE INDEX.

    1.5.5, 1.6.0release notesrelease notes

  • Session ID generation is fixed for secondary storage used without a database.

    1.5.0, 1.6.0release notesrelease notes

  • Client session refresh now handles throw: true correctly and preserves stale session data on network or server errors.

    1.6.0release notes

  • The twoFactorTable option is now wired to the schema modelName.

    1.5.5, 1.6.0release notesrelease notes

  • The Prisma adapter uses updateMany as a fallback for non-unique updates.

    1.5.5, 1.6.0release notesrelease notes

  • Filters null organizations from listUserInvitations results.

    1.5.6release notes

  • Fixes declaration type errors in the distributed OAuth provider package.

    1.5.6release notes

  • Improves allowed paths for oauth_query in the client plugin.

    1.5.6release notes

  • Improves Stripe organization customer search by checking customerType.

    1.5.6release notes

  • Returns a Response for HTTP request contexts.

    1.5.6release notes

  • Handles Electron safeStorage encryption failures gracefully.

    1.5.6release notes

  • Uses a namespace import for samlify to fix ESM compatibility.

    1.5.6release notes

  • Fixes handling of skipOriginCheck when configured as an array.

    1.5.6release notes

  • Replaces the {CHECKOUT_SESSION_ID} placeholder in the Stripe success callbackURL.

    1.5.6release notes

  • Handles throw:true during session refresh.

    1.5.6release notes

  • The CLI now resolves path aliases from extended tsconfig files.

    1.5.5release notes

  • SSO domain verification now handles bare domains.

    1.5.5release notes

  • Passes the user field through the idToken sign-in body to support Apple names.

    1.5.5release notes

  • Avoids fetch redirect CORS after login in the oauth-provider.

    1.5.5release notes

  • Invite and member-removal checks now handle users with multiple roles.

    1.5.5release notes

  • The client preserves stale session data when network or server errors occur.

    1.5.5release notes

  • Focus refresh now preserves custom session fields.

    1.5.5release notes

  • Adapter packages are moved to dependencies to fix missing module errors.

    1.5.4release notes

  • The expo integration handles origin overrides across mutable and immutable requests.

    1.5.4release notes

  • Fixes the access control indexing type.

    1.5.2release notes

  • Prevents cookies from being double encoded.

    1.5.2release notes

  • CustomIdTokenClaims now override standard claims.

    1.5.2release notes

  • Allows localhost subdomains in the isLocalhost function.

    1.5.2release notes

  • Uses a lookahead heuristic to split Set-Cookie headers.

    1.5.2release notes

  • SSO prefers the UserInfo endpoint over the ID token and maps the sub claim correctly.

    1.5.2release notes

  • Direct imports fix bundler re-export type resolution for the client.

    1.5.1release notes

  • safeJSONParse revives date strings in pre-parsed objects.

    1.5.1release notes

  • Verification operations are supported when using secondary storage.

    1.5.1release notes

  • Improves locking strategies across adapters to prevent transaction deadlocks.

    1.5.0release notes

  • Synchronizes updateSession changes and removes duplicate writes.

    1.5.0release notes

  • Fixes endpoints returning empty arrays when more than 100 inactive sessions exist.

    1.5.0release notes

  • Email matching for social account linking is case-insensitive.

    1.4.19, 1.5.0release notesrelease notes

  • Supports the new versioning scheme introduced in Expo SDK 55.

    1.4.21release notes

  • Error details are passed through to the API-key response.

    1.4.19release notes

  • The callbackURL in delete-user verification emails is encoded.

    1.4.19release notes

  • Provisioning types allow custom organization roles.

    1.4.19release notes

  • Already verified users without a session are skipped when sending email verification.

    1.4.19release notes

  • The CLI includes .env.local when loading dotenv files.

    1.4.19release notes

  • Corrects construction of error redirect URLs.

    1.4.19release notes

  • Passkey expirationTime is computed per request instead of at initialization.

    1.4.19release notes

  • Cookie retrieval is more permissive.

    1.4.19release notes

  • Headers detection uses an instanceof check with a cross-realm fallback.

    1.4.19release notes

  • Adds error handling for ID token verification in Apple and Google providers.

    1.4.19release notes

  • Encrypted secret verification failures return invalid_client.

    1.4.19release notes

  • The listUsers filter is applied when filterValue is defined.

    1.4.19release notes

  • Statements can be passed directly into newRole.

    1.4.19release notes

  • Date values from the database are safely coerced in the OAuth provider plugin.

    1.4.19release notes

  • Default values for the required attribute are inferred correctly.

    1.4.19release notes

  • Fixes the relay state redirect on the SAML ACS route.

    1.4.19release notes

  • Adapter operations improve support for select, allowing developers to use select with adapters more reliably.

    1.4.19release notes

  • Custom sessions use getSetCookie() to preserve individual Set-Cookie headers.

    1.4.19release notes

  • Corrects IdentityProvider configuration in signInSSO.

    1.4.19release notes

  • The TXT record is resolved at the verification subdomain instead of the root domain.

    1.4.19release notes

  • The /subscription/cancel/callback endpoint uses the correct stripeCustomerId.

    1.4.19release notes

  • The list type changes from never[] to UserWithRole[].

    1.4.19release notes

  • The Microsoft Entra ID provider supports verifyIdToken.

    1.4.19release notes

  • Deep link cookie injection supports wildcard trusted origins.

    1.4.19release notes

  • Refreshes the account_data cookie when a session is refreshed.

    1.4.18release notes

  • Finds the active subscription correctly when upgrading.

    1.4.18release notes

  • Exports types for the anonymous plugin.

    1.4.18release notes

  • Allows changing the billing interval while keeping the same plan.

    1.4.18release notes

  • Properly handles the metadata field in client registration.

    1.4.18release notes

  • Centralizes cookie parsing and correctly handles Expires dates.

    1.4.18release notes

  • Makes the Facebook provider API version consistent.

    1.4.18release notes

  • Handles serial and false cases in generateId.

    1.4.18release notes

  • Surfaces OAuth token exchange errors.

    1.4.18release notes

  • Updates the Google OAuth endpoints.

    1.4.18release notes

  • Adds routing for IdP-initiated SAML callbacks.

    1.4.18release notes

  • Logs an error when the configuration is invalid.

    1.4.18release notes

  • Prevents duplicate cookies when the same user signs in multiple times.

    1.4.18release notes

  • Correctly handles OAuth callbacks and the Apple email field.

    1.4.18release notes

  • Fixes the userinfo route mismatch.

    1.4.18release notes

  • Filters fields marked returned: false from organization API responses.

    1.4.18release notes

  • Respects the explicitly set sendOnSignUp option.

    1.4.18release notes

  • Skips invalid sessions when listing sessions.

    1.4.18release notes

  • Users can re-subscribe to the same plan after their subscription has expired.

    1.4.17release notes

  • Cookie handling falls back to isProduction when baseURL is not set.

    1.4.17release notes

  • Output schemas now exclude only fields marked returned: false.

    1.4.17release notes

  • Improves OTP comparison for hashed and encrypted values.

    1.4.17release notes

  • The activeTeamId field is present when dynamic access control is enabled.

    1.4.16release notes

  • Rate limiting supports IPv6 address normalization and subnet handling.

    1.4.16release notes

  • The account cookie is set on re-login when updateAccountOnSignIn is false.

    1.4.16release notes

  • Plugin actions are deep-merged on the client so all methods are preserved.

    1.4.15release notes

  • TanStack imports now use the server subpath.

    1.4.15release notes

  • Email sign-up now allows an empty name.

    1.4.14release notes

  • Updates the Figma provider's default scope and OAuth endpoints.

    1.4.14release notes

  • Fixes the TanStack Start cookie plugins for React and Solid.js.

    1.4.14release notes

  • Fixes cookie-based OAuth state when using expo-authorization-proxy.

    1.4.13release notes

  • Organization endpoints are inferred when dynamic access control and teams are enabled.

    1.4.13release notes

  • Expiration fields now return dates.

    1.4.13release notes

  • Cookie attributes are preserved when cookies expire.

    1.4.13release notes

  • getSchema now has a generic return type for proper field inference.

    1.4.13release notes

  • Prevents duplicate tokens from appearing in the active sessions list.

    1.4.12release notes

  • Defines the method for the delete-anonymous-user path.

    1.4.12release notes

  • The dual module warning is removed.

    1.4.12release notes

  • Calls the afterEmailVerification hook when email verification succeeds.

    1.4.11release notes

  • Removes a double stringify/parse of the metadata field.

    1.4.11release notes

  • Hooks are now called during the change-email-verification flow.

    1.4.11release notes

  • Prevents Convex cleanup from deleting fresh sessions.

    1.4.11release notes

  • Restores ctx.query from the cookie in the OAuth flow.

    1.4.11release notes

  • Filters null values from dynamic trusted origins.

    1.4.11release notes

  • Sending email verification for another user now fails with EMAIL_ALREADY_VERIFIED.

    1.4.11release notes

  • Redirected responses now set the Location header.

    1.4.11release notes

  • Expired rate-limit entries are cleaned up in memory storage.

    1.4.11release notes

  • Prompt retry logic now respects user dismiss actions.

    1.4.11release notes

  • Lifts eq AND conditions to the root so updates detect a unique where field.

    1.4.11release notes

  • Prevents duplicate subscription creation when a subscription already exists.

    1.4.11release notes

  • Passes metadata to the subscription object in the upgrade method.

    1.4.11release notes

  • Improves Stripe error handling and the subscriptionSuccess route.

    1.4.11release notes

  • Adds missing POST endpoints to the client pathMethods.

    1.4.11release notes

  • Removes the strict length pre-check during API key verification.

    1.4.11release notes

  • Correctly infers types for ZodDefault fields.

    1.4.11release notes

  • Fixes anonymous hooks breaking when a path is missing.

    1.4.10release notes

  • Fixes type inference for custom roles.

    1.4.10release notes

  • First login falls back to checking fetch Metadata.

    1.4.10release notes

  • Only session database storage is currently supported.

    1.4.10release notes

  • Fixes cookie handling in non-HTTPS environments and points provider requests to production.

    1.4.10release notes

  • Chains plugin onRequest hooks properly.

    1.4.10release notes

  • Adds subscription/restore to pathMethods.

    1.4.10release notes

  • Synchronizes updateSession changes to secondary storage and the active-sessions list.

    1.4.10release notes

  • Updated data is now merged correctly in the account cookie.

    1.4.9release notes

  • The trusted origins environment variable is now respected.

    1.4.9release notes

  • The adapter now applies customTransformInput to where-clause values.

    1.4.9release notes

  • Helper types are now included in package exports.

    1.4.9release notes

  • Internal organization creation is allowed when organization creation is disabled for the client.

    1.4.9release notes

  • IP headers are now respected in development and test environments.

    1.4.9release notes

  • The list-members where clause now uses an operator.

    1.4.9release notes

  • The state query parameter is omitted when no state is provided.

    1.4.9release notes

  • Adds compatibility with OpenAPI 3.1.

    1.4.9release notes

  • Cookie parsing now preserves = padding.

    1.4.9release notes

  • Stripe subscription IDs now use the Stripe ID.

    1.4.9release notes

  • Corrects wildcard pattern matching for trustedOrigins.

    1.4.9release notes

  • Discovery URLs are normalized and validated.

    1.4.7release notesrelease notes

  • Prevents stateless refresh when a database is configured.

    1.4.7release notesrelease notes

  • Prevents active sessions from being deleted prematurely in secondary storage.

    1.4.6release notesrelease notes

  • Adds logger creation in the adapter factory.

    1.4.6release notes

  • Fixes array field handling across adapters and schema generation.

    1.4.6release notesrelease notes

  • Pathnames are normalized when basePath is set to the root.

    1.4.6release notesrelease notes

  • Handles query parameters in the magic-link error callback URL.

    1.4.6release notes

  • Improves OIDC compatibility with exact optional property types.

    1.4.6release notes

  • Marks the /get-session response as nullable in OpenAPI.

    1.4.6release notes

  • Provider options can now return null from getUserInfo.

    1.4.6release notesrelease notes

  • Allows running the internal adapter outside context.

    1.4.6release notes

  • Fixes affected row counts returned by updateMany and deleteMany.

    1.4.6release notes

  • Organization plugin types are now exported.

    1.4.6release notesrelease notes

  • Fixes the CLI secret command generating an empty value.

    1.4.6release notes

  • Ensures a non-chunked session data cookie is cleared.

    1.4.6release notes

  • Awaits the username validator.

    1.4.6release notes

  • Account data cookies are chunked when they exceed the limit.

    1.4.4release notes

  • Additional field default values are applied when creating a session.

    1.4.4release notes

  • The MCP authorization server URL is now the origin URL.

    1.4.4release notes

  • Resolves the getSignedCookie return type in the OIDC provider.

    1.4.4release notes

  • Fixes log level priority.

    1.4.4release notes

  • Fixes multi-session endpoints when signatures are invalid.

    1.4.4release notes

  • Customizing fields is optional when configuring rate limit options.

    1.4.4release notes

  • Returns null early when userid is not defined.

    1.4.4release notes

  • Corrects an incorrect null type in OpenAPI.

    1.4.3release notes

  • Removes incorrect blocking logic in OTP setup and verification.

    1.4.3release notes

  • Fixes support for @tanstack/solid-start in the tanstackStartCookies plugin.

    1.4.3release notes

  • The operation uses adapter.deleteMany instead of delete.

    1.4.2release notes

  • Sign-in handles capitalized email addresses correctly.

    1.4.2release notes

  • The client no longer triggers get-session twice on focus.

    1.4.2release notes

  • The CLI migration no longer fails when addIndex and addColumn are chained on the same alterTable builder.

    1.4.2release notes

  • A session is no longer required.

    1.4.2release notes

  • Schema generation no longer creates duplicate indexes.

    1.4.2release notes

  • The APIs return the user's additional field.

    1.4.2release notes

  • The plugin supports @tanstack/solid-start.

    1.4.2release notes

  • Default values for custom fn fields are now evaluated properly.

    1.4.1release notes

  • JWT retrieves the latest keys from storage properly.

    1.4.1release notes

  • The error message for a bad TOTP code during 2FA setup is improved.

    1.4.0release notes

  • Adapter handling of optional numeric ID references is corrected so nullable foreign keys do not become the string "null".

    1.4.0release notes

  • Update queries use updated field values in their WHERE clause.

    1.4.0release notes

  • Where clauses now receive the missing data type transformation.

    1.4.0release notes

  • User updates can handle additional fields and validation.

    1.4.0release notes

  • Fixes string[] inference for additionalFields.

    1.4.0release notes

  • Additional fields are persisted in the cookie cache.

    1.4.0release notes

  • addPasskey returns passkey data instead of undefined.

    1.4.0release notes

  • Backup codes are no longer encrypted twice.

    1.3.28, 1.4.0release notesrelease notes

  • The /change-email endpoint triggers the session signal.

    1.4.0release notes

  • MCP respects the consent requirement.

    1.4.0release notes

  • Cookie size limits no longer cause an error.

    1.4.0release notes

  • Duplicate customer creation during signup is prevented.

    1.4.0release notes

  • A customer's email is synchronized when the database changes.

    1.4.0release notes

  • The Drizzle deleteMany result is a number.

    1.4.0release notes

  • Fixes GenericOAuth and SSO authorization handling so discoveryUrl is not ignored.

    1.4.0release notes

  • Migration order is corrected when dynamicAccessControl is enabled.

    1.4.0release notes

  • Adds missing email validation.

    1.4.0release notes

  • The user object reflects the emailVerified update made by magic-link authentication.

    1.4.0release notes

  • The MongoDB ends_with query behavior is made consistent.

    1.4.0release notes

  • Username types are compatible with exactOptionalPropertyTypes.

    1.4.0release notes

  • MongoDB findOneAndUpdate returns its value.

    1.4.0release notes

  • Treats generateId serial as a numeric ID and corrects UUID column types across adapters.

    1.4.0release notes

  • The getCustomerCreateParams hook is now called when creating a customer.

    1.4.0release notes

  • The getSession return type now includes null.

    1.4.0release notes

  • The last used method is detected for passkey logins.

    1.4.0release notes

  • Magic-link sign-in no longer returns an early error when signup is disabled.

    1.4.0release notes

  • The generic OAuth integration awaits asynchronous mapProfileToUser results.

    1.4.0release notes

  • The MCP DCR response includes the Content-Type header.

    1.4.0release notes

  • Preserves provided string IDs in the MongoDB adapter when they are not valid ObjectIds.

    1.4.0release notes

  • OAuth proxy flows support cross-origin requests and return multiple Set-Cookie headers instead of a comma-separated header.

    1.4.0release notes

  • The OIDC login prompt value is cleared after login.

    1.4.0release notes

  • OIDC prompt parameters receive proper handling.

    1.4.0release notes

  • The configured onDelete behavior is no longer ignored.

    1.4.0release notes

  • The callback now returns the updated subscription.

    1.4.0release notes

  • Membership checks work for organizations with large member counts.

    1.4.0release notes

  • Generic OAuth and OAuth2 user information updates now work with overrideUserInfo.

    1.4.0release notes

  • Uses identity instead of serial for PostgreSQL schemas.

    1.4.0release notes

  • PostgreSQL support respects search_path when using a non-public schema.

    1.3.29, 1.4.0release notesrelease notes

  • Fixes subscription cancellation failing with Prisma.

    1.4.0release notes

  • When refetchInterval triggers, it now makes an active network request.

    1.4.0release notes

  • The API key refill interval time calculation is corrected.

    1.4.0release notes

  • removeTeamMember works with Prisma.

    1.4.0release notes

  • Refreshes sessions in secondary storage when a user is updated.

    1.4.0release notes

  • Corrects a reference used by server-only actions.

    1.4.0release notes

  • The custom-session implementation no longer overwrites the Set-Cookie header.

    1.4.0release notes

  • Creating an SSO provider with a providerId already in use is prevented.

    1.4.0release notes

  • Stripe error codes are returned from the plugin.

    1.4.0release notes

  • Reference validation checks for reference IDs.

    1.4.0release notes

  • When telemetry is disabled, async imports are avoided, fixing esbuild compatibility.

    1.4.0release notes

  • Updating an API key no longer updates lastRequest or incorrectly tracks usage.

    1.4.0release notes

  • Username behavior respects the send-on-sign configuration.

    1.4.0release notes

  • The React useSession type now includes isRefetching.

    1.3.28, 1.4.0release notesrelease notes

  • An empty email is checked for after user profile mapping.

    1.4.0release notes

  • The Drizzle adapter handles all operators in multiple where conditions.

    1.4.0release notes

  • withPath handles empty and root paths and prevents double slashes.

    1.4.0release notes

  • Fixes a type annotation issue.

    1.3.34release notes

  • The OpenAPI schema for the email verification endpoint is fixed.

    1.3.33release notes

  • The OIDC provider uses a consistent iat claim.

    1.3.33release notes

  • OTP validation uses the twoFactorEnabled flag instead of a database lookup.

    1.3.33release notes

  • Fixed the origin check in Expo when the origin is null.

    1.3.31release notes

  • Corrected typesVersions paths so TypeScript can resolve package types correctly.

    1.3.30release notes

  • Falsy values are now accepted as valid defaults.

    1.3.28release notes

  • The GitLab provider's token endpoint was fixed.

    1.3.28release notes

  • Passkey atom listeners now work.

    1.3.28release notes

  • Passkey no longer breaks when throw is true.

    1.3.28release notes

  • In Expo, set-header now retriggers $sessionSignal.

    1.3.28release notes