@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 +3 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -935,7 +935,8 @@ async function importJWK(jwk, alg, options) {
|
|
|
935
935
|
}
|
|
936
936
|
|
|
937
937
|
// src/webhook.ts
|
|
938
|
-
var DEFAULT_ISSUER = "https://ochk.io";
|
|
938
|
+
var DEFAULT_ISSUER = "https://me.ochk.io";
|
|
939
|
+
var JWKS_PATH = "/api/dev-jwks";
|
|
939
940
|
var DEFAULT_TTL_MS = 60 * 60 * 1e3;
|
|
940
941
|
var jwksCache = /* @__PURE__ */ new Map();
|
|
941
942
|
var inflight = /* @__PURE__ */ new Map();
|
|
@@ -946,7 +947,7 @@ async function fetchJwks(issuer, ttlMs) {
|
|
|
946
947
|
if (existing) return existing;
|
|
947
948
|
const p = (async () => {
|
|
948
949
|
try {
|
|
949
|
-
const url = `${issuer.replace(/\/$/, "")}
|
|
950
|
+
const url = `${issuer.replace(/\/$/, "")}${JWKS_PATH}`;
|
|
950
951
|
const res = await fetch(url, { headers: { Accept: "application/json" } });
|
|
951
952
|
if (!res.ok) throw new Error(`JWKS fetch ${url} returned ${res.status}`);
|
|
952
953
|
const json = await res.json();
|