Packages

@better-auth/sso

1.7.12 · 20 Oct 2026MIT755k / weekRepositoryHomepagenpmAtom feed

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

  1. 1.7.12

    20 Oct 2026
    • Fixed OIDC SSO sign-in to reject ID tokens missing exp or iat and providers with an empty client ID, matching social sign-in

  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 @better-auth/utils and better-call dependency versions across official packages

    • Fixed SSO provider registration and updates rejecting partial mapping values that omit defaulted fields

    • Fixed SAML providers with linked accounts rejecting IdP signing certificate rotation

  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 experimental.instrumentation.enabled to disable OpenTelemetry span creation per auth instance.

    • Added support for additional session fields in testUtils auth helpers.

    • Added Vitest 5 support to the testing utilities.

  10. 1.7.3

    6 Sep 2026
    • Restored compatibility with 1.6 account schemas by identifying accounts with (providerId, accountId) instead of issuer.

  11. 1.7.2

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

  12. 1.7.1

    18 Aug 2026
    • Fixed SSO provider registration to allow reusing a SCIM connection ID, as SCIM connections no longer participate in the authentication provider namespace.

    • Fixed SAML assertion signature verification to validate signatures on the raw assertion instead of trusting an already-parsed response, and enforced signing policy and size limits on SP metadata. wantAssertionsSigned now correctly controls whether the SP requires signed assertions, matching real-world IdP signing behavior.

  13. 1.7.0

    18 Aug 2026
    • breaking

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

      Migration: Accounts now require Account.issuer. SSO subjects are protocol-defined (sub for OIDC, signed NameID for SAML) and mapping.id is removed; a manual SAML config without metadata XML must set idpMetadata.entityID. Apply the account-identity backfill in the 1.7 upgrade guide before deploying.

    • breaking

      Added rolling SAML certificate rotation by accepting an array of IdP signing certificates

      Migration: getSSOProvider, listSSOProviders, and updateSSOProvider now always return samlConfig.certificate as an array, so drop any Array.isArray branching. Registration rejects SAML configs with no signing-cert source with CERT_SOURCE_MISSING.

    • breaking

      Hardened the validateUserInfo source contract so it cannot be bypassed or spoofed

      Migration: createUser now fails closed when validateUserInfo is configured but no endpoint context or provisioning source is available. Read SSO metadata from source.sso instead of source.oauth, and handle the source.method values sso-oidc and sso-saml.

  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 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
    • 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…