---
title: "@better-auth/oauth-provider 1.7.27 Breaking Changes on npm"
description: "What each @better-auth/oauth-provider release removed, renamed or changed: 35 breaking changes in 15 versions on npm, each with its source."
canonical_url: https://since.dev/packages/npm/@better-auth/oauth-provider
last_updated: 2026-12-04
---

# @better-auth/oauth-provider breaking changes

@better-auth/oauth-provider 1.7.27 (November 20, 2026) is its newest release with breaking changes, 6 of them. The first: Signing keys removed from client metadata stop working after refresh in @better-auth/oauth-provider 1.7.27. Every breaking API change we have recorded in @better-auth/oauth-provider on npm: 35 breaking changes in 15 versions. Below, its 15 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `1.7.29`, released November 28, 2026. [Source repository](https://github.com/better-auth/better-auth)

Packages on npm run on Node.js. [Node.js end of life dates](https://since.dev/calendar/nodejs.md).

- From [1.7.5](#v-1-7-5) to [1.7.27](#v-1-7-27): 34 breaking changes in 14 versions.

## @better-auth/oauth-provider 1.7.27 breaking changes

@better-auth/oauth-provider 1.7.27, released November 20, 2026: 6 breaking changes.

- **Behavior changed**  

Signing keys and post-logout redirect URIs removed from a client's metadata document are no longer honored after a refresh. [github.com](https://github.com/better-auth/better-auth/releases/tag/v1.7.27)
- **Behavior changed**  

Refresh tokens without offline_access now stop working once their session expires or is deleted. [github.com](https://github.com/better-auth/better-auth/releases/tag/v1.7.27)
- **Behavior changed** `jwks.keyPairConfig.alg`  

If no key matches jwks.keyPairConfig.alg, ID tokens and JWTs change alg and kid; update verifiers that hard-code the old algorithm or do not refetch the JWKS for unknown kid values. [github.com](https://github.com/better-auth/better-auth/releases/tag/v1.7.27)
- **Behavior changed** `oauth2.introspect`  

For JWT client_credentials tokens issued to pairwise clients, sub is now the client ID; clients relying on the previous value must update. [github.com](https://github.com/better-auth/better-auth/releases/tag/v1.7.27)
- **Default changed** `originBoundFields`  

A client_uri on a different origin than the client_id is no longer rejected by default; add "client_uri" to originBoundFields to keep rejecting it. [github.com](https://github.com/better-auth/better-auth/releases/tag/v1.7.27)
- **Signature changed** `OAuthOptions.advertisedMetadata`  

Was advertisedMetadata?: {scopes_supported?: Scopes; claims_supported?: string\[\];}; now advertisedMetadata?: {scopes_supported?: Scopes; claims_supported?: string\[\]; token_endpoint_auth_methods_supported?: TokenEndpointAuthMethod\[\];}. [npmjs.com](https://www.npmjs.com/package/@better-auth/oauth-provider/v/1.7.27)

## @better-auth/oauth-provider 1.7.26 breaking changes

@better-auth/oauth-provider 1.7.26, released November 18, 2026: 2 breaking changes.

- **Behavior changed** `adapter.getJwks`  

A custom JWT plugin adapter.getJwks is now called on every verification instead of its keys being cached. If your reads are expensive, add caching inside your key store. [github.com](https://github.com/better-auth/better-auth/releases/tag/v1.7.26)
- **Signature changed** `internal:getLocalJwksSource`  

Was const getLocalJwksSource: (context: AuthContext) => {jwksFetch: () => Promise\<JSONWebKeySet | undefined>; jwksCacheKey: import("better-auth").DBAdapter\<import("better-auth").BetterAuthOptions>;} | undefined; now const... [npmjs.com](https://www.npmjs.com/package/@better-auth/oauth-provider/v/1.7.26)

## @better-auth/oauth-provider 1.7.25 breaking changes

@better-auth/oauth-provider 1.7.25, released November 14, 2026: 1 breaking change.

- **Behavior changed** `oauthProviderResourceClient`  

The resource client no longer fetches signing keys over HTTP by default. To keep fetching them over HTTP, set jwksUrl. [github.com](https://github.com/better-auth/better-auth/releases/tag/v1.7.25)

## @better-auth/oauth-provider 1.7.23 breaking changes

@better-auth/oauth-provider 1.7.23, released November 13, 2026: 1 breaking change.

- **Configuration changed**  

If your CORS layer sets Access-Control-Expose-Headers itself, include WWW-Authenticate in it. [github.com](https://github.com/better-auth/better-auth/releases/tag/v1.7.23)

## @better-auth/oauth-provider 1.7.22 breaking changes

@better-auth/oauth-provider 1.7.22, released November 12, 2026: 1 breaking change.

- **Signature changed** `createResourceServerChallenge`  

Was function createResourceServerChallenge(error: unknown, resource: string | string\[\], opts?: {resourceMetadataMappings?: Record\<string, string>; dpopSigningAlgorithms?: readonly string\[\]; challengeScopes?: readonly string\[\];}): APIError... [npmjs.com](https://www.npmjs.com/package/@better-auth/oauth-provider/v/1.7.22)

## @better-auth/oauth-provider 1.7.21 breaking changes

@better-auth/oauth-provider 1.7.21, released November 11, 2026: 1 breaking change.

- **Behavior changed**  

Client registration and updates now return the invalid_redirect_uri error code for rejected post_logout_redirect_uris entries. Clients that match on invalid_client_metadata must check for invalid_redirect_uri instead. [github.com](https://github.com/better-auth/better-auth/releases/tag/v1.7.21)

## Older versions

9 older versions, each with its first changes. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

### @better-auth/oauth-provider 1.7.20 breaking changes

@better-auth/oauth-provider 1.7.20, released November 10, 2026: 2 breaking changes.

- **Behavior changed** `POST .oauth2.public-client-prelogin`  

With allowPublicClientPrelogin, a mismatched client_id now gets a 401 invalid_client response instead of the client. [github.com](https://github.com/better-auth/better-auth/releases/tag/v1.7.20)
- **Configuration changed** `baseURL`  

If your issuer uses http on a non-loopback host behind a TLS-terminating proxy, set baseURL to the public https URL. [github.com](https://github.com/better-auth/better-auth/releases/tag/v1.7.20)

### @better-auth/oauth-provider 1.7.19 breaking changes

@better-auth/oauth-provider 1.7.19, released November 10, 2026: 4 breaking changes.

- **Behavior changed**  

OAuth client metadata is written to the json column as an object, not a JSON string. Rows written as strings by earlier versions are still read, but code that reads the column directly must handle objects. [github.com](https://github.com/better-auth/better-auth/releases/tag/v1.7.19)
- **Behavior changed**  

A client secret without the configured prefix.clientSecret now returns 401 with a WWW-Authenticate: Basic challenge for client_secret_basic, and 400 for client_secret_post, instead of a different error. Code that matches the old error must... [github.com](https://github.com/better-auth/better-auth/releases/tag/v1.7.19)

And 2 more in this version.

### @better-auth/oauth-provider 1.7.13 breaking changes

@better-auth/oauth-provider 1.7.13, released October 25, 2026: 4 breaking changes.

- **Signature changed** `client:oauthProviderClient`  

Was const oauthProviderClient: () => {id: "oauth-provider-client"; version: string; fetchPlugins: {id: string; name: string; description: string; hooks: {onRequest\<T extends Record\<string, any>>(ctx... [npmjs.com](https://www.npmjs.com/package/@better-auth/oauth-provider/v/1.7.13)
- **Signature changed** `oauthDeviceAuthorization`  

Was function oauthDeviceAuthorization(options?: OAuthDeviceAuthorizationOptions): {init(ctx: AuthContext): void; id: "device-authorization"; version: string; schema: {deviceCode: {fields: {deviceCode: {type: "string"; required: true;}... [npmjs.com](https://www.npmjs.com/package/@better-auth/oauth-provider/v/1.7.13)

And 2 more in this version.

### @better-auth/oauth-provider 1.7.11 breaking changes

@better-auth/oauth-provider 1.7.11, released October 19, 2026: 1 breaking change.

- **Signature changed** `oauthProvider`  

Was const oauthProvider: \<O extends OAuthOptions\<Scope\[\]>>(options: O) => {id: "oauth-provider"; version: string; options: NoInfer\<O>; onRequest: (request: Request, ctx: \_$better_auth0.AuthContext) => Promise<{response: Response;} |... [npmjs.com](https://www.npmjs.com/package/@better-auth/oauth-provider/v/1.7.11)

### @better-auth/oauth-provider 1.7.10 breaking changes

@better-auth/oauth-provider 1.7.10, released October 15, 2026: 5 breaking changes.

- **Behavior changed**  

PKCE verifier errors now use the HTTP 400 response and error code the spec requires. Update any code that relies on the previous status or error code. [github.com](https://github.com/better-auth/better-auth/releases/tag/v1.7.10)
- **Behavior changed**  

Token requests from unknown clients now return invalid_client instead of invalid_grant. Update any error handling that checks for invalid_grant. [github.com](https://github.com/better-auth/better-auth/releases/tag/v1.7.10)

And 3 more in this version.

### @better-auth/oauth-provider 1.7.9 breaking changes

@better-auth/oauth-provider 1.7.9, released October 15, 2026: 2 breaking changes.

- **Signature changed** `OAuthOptions.postLogin`  

Was postLogin?: {page: string; consentReferenceId: (context: {user: User & Record\<string, unknown>; session: Session & Record\<string, unknown>; scopes: Scopes;}) => Awaitable\<string | undefined>; shouldRedirect: (context: {headers... [npmjs.com](https://www.npmjs.com/package/@better-auth/oauth-provider/v/1.7.9)
- **Signature changed** `OAuthOptions.postLogin.shouldRedirect`  

Was shouldRedirect: (context: {headers: Headers; user: User & Record\<string, unknown>; session: Session & Record\<string, unknown>; scopes: Scopes;}) => Awaitable\<boolean>; now shouldRedirect: (context: {headers: Headers; user: User &... [npmjs.com](https://www.npmjs.com/package/@better-auth/oauth-provider/v/1.7.9)

### @better-auth/oauth-provider 1.7.8 breaking changes

@better-auth/oauth-provider 1.7.8, released October 14, 2026: 3 breaking changes.

- **Behavior changed** `clientPrivileges`  

Actions on existing OAuth clients are now checked with the clientId passed to clientPrivileges. Review custom clientPrivileges callbacks that assume the old inputs. [github.com](https://github.com/better-auth/better-auth/releases/tag/v1.7.8)
- **Signature changed** `OAuthOptions.clientPrivileges`  

Was clientPrivileges?: (context: {headers: Headers; action: "create" | "read" | "update" | "delete" | "list" | "rotate" | "configure-client-credentials-scopes"; user?: User & Record\<string, unknown>; session?: Session & Record\<string... [npmjs.com](https://www.npmjs.com/package/@better-auth/oauth-provider/v/1.7.8)

And 1 more in this version.

### @better-auth/oauth-provider 1.7.6 breaking changes

@better-auth/oauth-provider 1.7.6, released September 24, 2026: 1 breaking change.

- **Behavior changed** `maxPasswordLength`  

Passwords longer than maxPasswordLength are now rejected before hashing or verification. Users with longer existing passwords may fail to sign in and need a shorter password or a higher limit. [github.com](https://github.com/better-auth/better-auth/releases/tag/v1.7.6)

### @better-auth/oauth-provider 1.7.5 breaking changes

@better-auth/oauth-provider 1.7.5, released September 14, 2026: 1 breaking change.

- **Signature changed** `oauthDeviceAuthorization`  

Was function oauthDeviceAuthorization(options?: OAuthDeviceAuthorizationOptions): {init(ctx: AuthContext): void; id: "device-authorization"; version: string; schema: {deviceCode: {fields: {deviceCode: {type: "string"; required: true;}... [npmjs.com](https://www.npmjs.com/package/@better-auth/oauth-provider/v/1.7.5)

## Related packages

- [better-auth](https://since.dev/packages/npm/better-auth.md)
- [@better-auth/sso](https://since.dev/packages/npm/@better-auth/sso.md)
- [@better-auth/core](https://since.dev/packages/npm/@better-auth/core.md)
- [@better-auth/expo](https://since.dev/packages/npm/@better-auth/expo.md)
- [@better-auth/drizzle-adapter](https://since.dev/packages/npm/@better-auth/drizzle-adapter.md)
- [@better-auth/infra](https://since.dev/packages/npm/@better-auth/infra.md)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#api) reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

## Put your code on continuous maintenance.

Scan a public repository now, or give your agent one line.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
