@better-auth/oauth-provider 1.6.16 → 1.6.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  import { C as handleMcpErrors, a as getJwtPlugin, o as getOAuthProviderPlugin } from "./utils-BKGiA6QL.mjs";
2
- import { t as PACKAGE_VERSION } from "./version-BJguNh6q.mjs";
2
+ import { t as PACKAGE_VERSION } from "./version-yLooQum9.mjs";
3
3
  import { verifyAccessToken } from "better-auth/oauth2";
4
4
  import { APIError } from "better-call";
5
5
  import { logger } from "@better-auth/core/env";
package/dist/client.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { t as PACKAGE_VERSION } from "./version-BJguNh6q.mjs";
1
+ import { t as PACKAGE_VERSION } from "./version-yLooQum9.mjs";
2
2
  import { safeJSONParse } from "@better-auth/core/utils/json";
3
3
  //#region src/client.ts
4
4
  function parseSignedQuery(search) {
package/dist/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  import { S as verifyOAuthQueryParams, _ as searchParamsToQuery, a as getJwtPlugin, b as storeToken, c as getStoredToken, d as parseClientMetadata, f as parsePrompt, g as resolveSubjectIdentifier, h as resolveSessionAuthTime, i as getClient, l as isPKCERequired, m as removePromptFromQuery, n as clientAllowsGrant, p as postLoginClearedParam, r as decryptStoredClientSecret, s as getSignedQueryIssuedAt, t as basicToClientCredentials, u as normalizeTimestampValue, v as signedQueryIssuedAtParam, w as mcpHandler, x as validateClientCredentials, y as storeClientSecret } from "./utils-BKGiA6QL.mjs";
2
- import { t as PACKAGE_VERSION } from "./version-BJguNh6q.mjs";
2
+ import { t as PACKAGE_VERSION } from "./version-yLooQum9.mjs";
3
3
  import { APIError, createAuthEndpoint, createAuthMiddleware, dispatchAuthEndpoint, getOAuthState, getSessionFromCtx, sessionMiddleware } from "better-auth/api";
4
4
  import { generateCodeChallenge, getJwks, verifyJwsAccessToken } from "better-auth/oauth2";
5
5
  import { APIError as APIError$1 } from "better-call";
@@ -827,6 +827,7 @@ async function validateJwtAccessToken(ctx, opts, token, clientId) {
827
827
  jwksFetch: jwtPluginOptions?.jwks?.remoteUrl ? jwtPluginOptions.jwks.remoteUrl : async () => {
828
828
  return (await jwtPlugin?.endpoints.getJwks(ctx))?.response;
829
829
  },
830
+ jwksCacheKey: jwtPlugin,
830
831
  verifyOptions: {
831
832
  audience: opts.validAudiences ?? ctx.context.baseURL,
832
833
  issuer: jwtPluginOptions?.jwt?.issuer ?? ctx.context.baseURL
@@ -2268,6 +2269,7 @@ async function revokeJwtAccessToken(ctx, opts, token) {
2268
2269
  jwksFetch: jwtPluginOptions?.jwks?.remoteUrl ? jwtPluginOptions.jwks.remoteUrl : async () => {
2269
2270
  return (await jwtPlugin?.endpoints.getJwks(ctx))?.response;
2270
2271
  },
2272
+ jwksCacheKey: jwtPlugin,
2271
2273
  verifyOptions: {
2272
2274
  audience: opts.validAudiences ?? ctx.context.baseURL,
2273
2275
  issuer: jwtPluginOptions?.jwt?.issuer ?? ctx.context.baseURL
@@ -1,5 +1,5 @@
1
1
  //#endregion
2
2
  //#region src/version.ts
3
- const PACKAGE_VERSION = "1.6.16";
3
+ const PACKAGE_VERSION = "1.6.17";
4
4
  //#endregion
5
5
  export { PACKAGE_VERSION as t };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@better-auth/oauth-provider",
3
- "version": "1.6.16",
3
+ "version": "1.6.17",
4
4
  "description": "An oauth provider plugin for Better Auth",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -64,15 +64,15 @@
64
64
  "@modelcontextprotocol/sdk": "^1.27.1",
65
65
  "listhen": "^1.9.0",
66
66
  "tsdown": "0.21.1",
67
- "@better-auth/core": "1.6.16",
68
- "better-auth": "1.6.16"
67
+ "better-auth": "1.6.17",
68
+ "@better-auth/core": "1.6.17"
69
69
  },
70
70
  "peerDependencies": {
71
71
  "@better-auth/utils": "0.4.1",
72
- "@better-fetch/fetch": "1.2.2",
72
+ "@better-fetch/fetch": "1.3.0",
73
73
  "better-call": "1.3.6",
74
- "@better-auth/core": "^1.6.16",
75
- "better-auth": "^1.6.16"
74
+ "@better-auth/core": "^1.6.17",
75
+ "better-auth": "^1.6.17"
76
76
  },
77
77
  "scripts": {
78
78
  "build": "tsdown",