Packages

@better-auth/test-utils

1.7.12 · 20 Oct 2026MIT11.2k / weekRepositoryHomepagenpmAtom feed

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

  1. 1.7.12

    20 Oct 2026
    • Fixed the JWT plugin to verify JWTs and session cookie-cache JWTs with the stored key's algorithm instead of the token header's, and to warn when signing or verifying a JWT without an issuer or audience

    • Fixed OAuth callbacks completed through the OAuth proxy to run the same checks as the standard OAuth callback, including issuer and ID token nonce validation

    • Fixed auth.api.getSession() to keep the original database error as error.cause when the session lookup fails

  2. 1.7.11

    19 Oct 2026
    • Fixed repeated PostgreSQL migration diffs for int8 columns.

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

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

  3. 1.7.10

    15 Oct 2026
    • Fixed Captcha and OpenAPI plugin subpath imports and type resolution for better-auth/plugins/multi-session and better-auth/test.

    • Fixed Google One Tap sign-ins not recording google as the last login method.

    • Fixed imports from better-auth/plugins/one-tap failing with a not-exported error.

  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
    • Aligned cookie security attributes with RFC 6265bis

    • Added SvelteKit 3 to the supported peer dependency range

    • Fixed stale cookies persisting after customSession sessions expire or are revoked

  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
    • Added support for a bannedUserMessage function that receives the banned user, allowing sign-in errors to include details such as the ban reason.

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

    • Passwords over maxPasswordLength are now rejected with PASSWORD_TOO_LONG before hashing or verification.

  8. 1.7.5

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

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

    • Fixed PostgreSQL migrations incorrectly identifying tables and views across schemas.

  9. 1.7.4

    10 Sep 2026
    • Added Vitest 5 support to the testing utilities.

  10. 1.7.3

    6 Sep 2026
    • Improved adapter test suite performance by avoiding redundant cleanup queries.

    • Updated adapter test suites to remove issuer-specific account requirements.

  11. 1.7.2

    26 Aug 2026
    • Fixed permanent user bans to clear expiration dates from previous temporary bans.

    • Fixed client types with more plugins being assignable to types declaring fewer plugins.

    • Added warnings for invalid signed session data in the cookie cache.

  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

      Required captcha endpoint entries to match full auth paths, with wildcard support

      Migration: Replace partial paths such as /sign-in with explicit wildcards like /sign-in/* or /sign-in/**.

  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

    • 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
    • Fixed session cleanup on user deletion to also remove sessions from secondary storage

    • Fixed findSessions to skip invalid secondary-storage session entries without discarding other valid sessions

    • Fixed email OTP sign-up to pass the verification type to custom OTP generators

  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…