Packages

@better-auth/core

1.7.12 · 20 Oct 2026MIT7.8M / weekRepositoryHomepagenpmAtom feed

91 stable releases, newest first, by release line. Notes are quoted as the maintainers published them.

  1. 1.7.12

    20 Oct 2026
    • Fixed mapProfileToUser failing to typecheck under exactOptionalPropertyTypes when it returns undefined for name, email, or image

    • Fixed ID token sign-in to reject tokens when the provider has no client ID, since their audience cannot be checked

    • Fixed a custom Facebook getUserInfo to no longer receive client-submitted access tokens issued to another Facebook app, and ID tokens missing exp or iat are now rejected

  2. 1.7.11

    19 Oct 2026
    • Fixed plugin init returns with options: undefined failing type checks under exactOptionalPropertyTypes.

    • Fixed ID token signature and claim validation for Twitch and Paybin sign-in. Custom Paybin issuers must publish RS256 signing keys at <issuer>/.well-known/jwks.json.

    • Reduced installation size while preserving OpenTelemetry instrumentation attributes.

  3. 1.7.10

    15 Oct 2026
    • Limited JWKS refetches for unknown key IDs to protect servers from repeated requests.

    • Fixed unreachable JWKS endpoints being reported as invalid tokens instead of server errors.

  4. 1.7.9

    15 Oct 2026
    • Fixed onAPIError.onError handlers to finish before responses are sent and log failures without interrupting requests

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

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

  5. 1.7.8

    14 Oct 2026
    • Fixed ID token sign-in failures caused by up to 30 seconds of clock difference with identity providers

    • Fixed Atlassian user info errors being mislabeled as Figma errors in logs

    • Fixed authentication requests hanging after interrupted async context initialization

  6. 1.7.7

    30 Sep 2026
    • security

      Fixed a critical Magic Link account-takeover vulnerability.

    • Fixed ID-token sign-in ignoring the social provider’s disableSignUp setting.

    • Fixed OAuth Proxy accepting sign-in state as a provider profile.
      Upgrade all OAuth Proxy participants together; see the OAuth Proxy upgrade guidance.

  7. 1.7.6

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

  8. 1.7.5

    14 Sep 2026
    • Added database.schemaName support for direct PostgreSQL connections.

    • Fixed database option type inference outside Cloudflare Workers.

  9. 1.7.4

    10 Sep 2026
    • Added experimental.instrumentation.enabled to disable OpenTelemetry span creation per auth instance.

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

  10. 1.7.3

    6 Sep 2026
    • Added Cloudflare as a built-in social provider with client-secret and PKCE support.

    • Added initialization-time schema validation and actionable mismatch guidance for Drizzle and Prisma adapters.

    • Enabled schema validation during initialization by default, including in production, and rejected authentication requests on detected mismatches.

  11. 1.7.2

    26 Aug 2026
    • Fixed async context loss in Cloudflare Workers bundles with multiple runtime conditions.

    • Fixed auth request logs to respect the configured logger, log level, and disabled setting.

    • Improved validation of relative callback and redirect URLs with paths, queries, and fragments.

  12. 1.7.1

    18 Aug 2026
    • Added native database transaction support to test instances for PostgreSQL and MySQL.

    • Updated bundled dependencies (jose, nanostores, noble crypto packages, SimpleWebAuthn) to their latest compatible releases, with no changes required to existing projects.

    • Fixed case-insensitive parsing of string Boolean values for SCIM User active and the primary sub-attribute of emails, phoneNumbers, addresses, roles, and entitlements at the HTTP ingress, improving Microsoft Entra interoperability.

  13. 1.7.0

    18 Aug 2026
    • breaking

      Moved database joins out of experimental into the stable advanced.database.joins option

      Migration: Replace experimental: { joins: true } with advanced: { database: { joins: true } }. Drizzle and Prisma users should regenerate their schema (npx auth@latest generate) so it includes the required relations.

    • breaking

      Scoped account identity by trusted issuer, keying accounts on (issuer, accountId)

      Migration: Accounts now require Account.issuer. Read provider identity from accountInfo.account.accountId, drop mapping.id from SSO configs, and give the microsoftEntraId helper a concrete tenant GUID. Apply the account-identity backfill in the 1.7 upgrade guide before deploying.

    • breaking

      Decoupled SCIM provisioning from the organization plugin

      Migration: SCIM configuration, client APIs, database schema, and the Group model are all replaced, and provisioning state cannot migrate in place. Follow the SCIM cutover in the 1.7 upgrade guide, including a full directory reprovision, before resuming traffic.

  14. 1.6.33

    14 Sep 2026
    • Fixed database option type inference for projects that do not use Cloudflare Workers.

  15. 1.6.32

    14 Sep 2026
    • Improved diagnostics for Cloudflare Turnstile verification failures

  16. 1.6.31

    10 Sep 2026
    • Added an option to disable OpenTelemetry span creation for individual auth instances

  17. 1.6.30

    17 Aug 2026
    • Fixed concurrent cold-start requests from intermittently losing authentication or transaction context due to an async storage initialization race

    • Fixed automatic organization assignment via email domain to require both a verified provider domain and a verified stored user email, preventing social sign-in from joining an organization whose SSO provider merely claims that domain.

    • Fixed domain verification to snapshot the provider's domains at request start, returning 409 with SSO_PROVIDER_CHANGED if the provider changes during DNS resolution so callers can reload and retry.

  18. 1.6.29

    14 Aug 2026
    • Improved deleteSessions performance by running deletes in parallel instead of sequentially

    • Fixed automatic email-domain organization assignment to require both a verified provider domain and a verified user email, preventing social sign-in from granting access when an SSO provider merely claims a domain.

    • Fixed domain verification to snapshot the provider's domains at request start, returning 409 with SSO_PROVIDER_CHANGED if the provider changes during DNS verification so callers can reload and retry.

  19. 1.6.28

    13 Aug 2026
    • Prevented duplicate session requests during React Suspense retries while preserving revalidation for interrupted refreshes

    • Restored client plugin declaration compatibility for downstream TypeScript consumers

    • Restored client plugin declaration compatibility for downstream TypeScript consumers

  20. 1.6.27

    11 Aug 2026
    • Fixed duplicate session requests being made across Suspense retries

    • Fixed auth endpoint types to align with better-call

    • Fixed the CLI to align installed packages with the running CLI version

  21. 1.6.26

    4 Aug 2026
    • Added a utility for creating stable, namespaced placeholder emails on the reserved placeholder.invalid domain

  22. 1.6.25

    23 Jul 2026

    Reading the note…

  23. 1.6.24

    22 Jul 2026

    Reading the note…

  24. 1.6.23

    29 Jun 2026

    Reading the note…

  25. 1.6.22

    26 Jun 2026

    Reading the note…

  26. 1.6.21

    26 Jun 2026

    Reading the note…

  27. 1.6.20

    20 Jun 2026

    Reading the note…

  28. 1.6.19

    16 Jun 2026

    Reading the note…

  29. 1.6.18

    12 Jun 2026

    Reading the note…

  30. 1.6.17

    12 Jun 2026

    Reading the note…

  31. 1.6.16

    10 Jun 2026

    Reading the note…

  32. 1.6.15

    8 Jun 2026

    Reading the note…

  33. 1.6.14

    2 Jun 2026

    Reading the note…

  34. 1.6.13

    31 May 2026

    Reading the note…

  35. 1.6.12

    29 May 2026

    Reading the note…

  36. 1.6.11

    12 May 2026

    Reading the note…

  37. 1.6.10

    9 May 2026

    Reading the note…

  38. 1.6.9

    24 Apr 2026

    Reading the note…

  39. 1.6.8

    23 Apr 2026

    Reading the note…

  40. 1.6.7

    22 Apr 2026

    Reading the note…

  41. 1.6.6

    21 Apr 2026

    Reading the note…

  42. 1.6.5

    16 Apr 2026

    Reading the note…

  43. 1.6.4

    15 Apr 2026

    Reading the note…

  44. 1.6.3

    14 Apr 2026

    Reading the note…

  45. 1.6.2

    9 Apr 2026

    Reading the note…

  46. 1.6.1

    8 Apr 2026

    Reading the note…

  47. 1.6.0

    6 Apr 2026

    Reading the note…

  48. 1.5.6

    22 Mar 2026

    Reading the note…

  49. 1.5.5

    11 Mar 2026

    Reading the note…

  50. 1.5.4

    6 Mar 2026

    Reading the note…