@better-auth/oauth-provider breaking changes
Updated December 4, 2026
On this page
Latest version 1.7.29, released November 28, 2026. Source repository
Packages on npm run on Node.js. Node.js end of life dates.
@better-auth/oauth-provider 1.7.27 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 - Behavior changed
Refresh tokens without offline_access now stop working once their session expires or is deleted. github.com - 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 - 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 - 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 - 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
@better-auth/oauth-provider 1.7.26 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 - 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
@better-auth/oauth-provider 1.7.25 breaking changes
- 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
@better-auth/oauth-provider 1.7.23 breaking changes
- Configuration changed
If your CORS layer sets Access-Control-Expose-Headers itself, include WWW-Authenticate in it. github.com
@better-auth/oauth-provider 1.7.22 breaking changes
- 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
@better-auth/oauth-provider 1.7.21 breaking changes
- 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
Older versions
9 older versions, each with its first changes. Sign up to see every change
Show 9 older versions
@better-auth/oauth-provider 1.7.20 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 - 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
@better-auth/oauth-provider 1.7.19 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 - 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
And 2 more in this version.
@better-auth/oauth-provider 1.7.13 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 - 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
And 2 more in this version.
@better-auth/oauth-provider 1.7.11 breaking changes
- 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
@better-auth/oauth-provider 1.7.10 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 - 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
And 3 more in this version.
@better-auth/oauth-provider 1.7.9 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 - 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
@better-auth/oauth-provider 1.7.8 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 - 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
And 1 more in this version.
@better-auth/oauth-provider 1.7.6 breaking changes
- 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
@better-auth/oauth-provider 1.7.5 breaking changes
- 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
Related packages
- better-auth
- @better-auth/sso
- @better-auth/core
- @better-auth/expo
- @better-auth/drizzle-adapter
- @better-auth/infra
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The 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.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.