@orangecheck/me-client 0.25.2 → 0.25.3

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.
package/dist/index.js CHANGED
@@ -957,7 +957,8 @@ async function importJWK(jwk, alg, options) {
957
957
  }
958
958
 
959
959
  // src/webhook.ts
960
- var DEFAULT_ISSUER = "https://ochk.io";
960
+ var DEFAULT_ISSUER = "https://me.ochk.io";
961
+ var JWKS_PATH = "/api/dev-jwks";
961
962
  var DEFAULT_TTL_MS = 60 * 60 * 1e3;
962
963
  var jwksCache = /* @__PURE__ */ new Map();
963
964
  var inflight = /* @__PURE__ */ new Map();
@@ -968,7 +969,7 @@ async function fetchJwks(issuer, ttlMs) {
968
969
  if (existing) return existing;
969
970
  const p = (async () => {
970
971
  try {
971
- const url = `${issuer.replace(/\/$/, "")}/.well-known/jwks.json`;
972
+ const url = `${issuer.replace(/\/$/, "")}${JWKS_PATH}`;
972
973
  const res = await fetch(url, { headers: { Accept: "application/json" } });
973
974
  if (!res.ok) throw new Error(`JWKS fetch ${url} returned ${res.status}`);
974
975
  const json = await res.json();