Packages

@better-auth/mcp

1.7.12 · 20 Oct 2026MIT389.8k / weekRepositoryHomepagenpmAtom feed

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

  1. 1.7.12

    20 Oct 2026
    • Fixed requireMcpAuth to accept only OAuth access tokens and reject session JWTs from the JWT plugin, even when they share the issuer and audience

  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
    • Fixed @better-auth/mcp type errors with exactOptionalPropertyTypes and skipLibCheck: false

    • Fixed type errors when using oauthProvider() or mcp() with exactOptionalPropertyTypes

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

      Fixed callback hooks being skipped after proxied OAuth sign-ins and preserved server state when callback cookies are unavailable. The legacy /oauth-proxy-callback endpoint is deprecated and will be removed in the next minor release.

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

    • 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 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 the MCP plugin into its own @better-auth/mcp package built on the OAuth provider

      Migration: Install @better-auth/mcp and @better-auth/cimd, add the now-required jwt() plugin, and move options nested under oidcConfig to flat mcp({ ... }) options. Rename withMcpAuth to requireMcpAuth and mcpHandler to createMcpProtectedRequestHandler. Regenerate the schema (npx auth migrate): oauthApplication becomes oauthClient, plus new oauthRefreshToken and oauthClientAssertion tables.

    • breaking

      Aligned OAuth client registration and metadata with MCP authorization 2026-07-28

      Migration: Add applicationType and nullable clientDiscoveryId columns, deduplicate existing (clientId, resourceId) links before the new compound unique index, then drop the legacy type and public columns. Replace clientCredentialGrantDefaultScopes with per-client clientCredentialsScopes, backfilling every client to `` and reassigning approved machine scopes after an audit. mcp() no longer enables unauthenticated DCR: compose it with cimd() or enable both DCR flags explicitly.

    • breaking

      Modeled OAuth protected resources explicitly, with per-resource TTLs, scopes, claims, and signing pins

      Migration: mcp() now requires an explicit resource identifier, for example resource: "https://api.example.com/mcp". validAudiences is removed: move each resource identifier into resources. Run npx @better-auth/cli generate and apply the migration before deploying.

  14. 1.4.17

    21 Jan 2026

    Reading the note…

  15. 1.4.16

    20 Jan 2026

    Reading the note…

  16. 1.4.15

    18 Jan 2026

    Reading the note…

  17. 1.4.14

    17 Jan 2026

    Reading the note…

  18. 1.4.13

    15 Jan 2026

    Reading the note…