@powerhousedao/registry 6.2.3-dev.67 → 6.2.3-dev.69

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.
@@ -520,11 +520,16 @@ function createRenownVerifier(config) {
520
520
  cache.delete(token);
521
521
  }
522
522
  }
523
- const did = (await (0, _renown_sdk.verifyAuthCredential)(token, {
524
- audience: config.publicUrl,
525
- renownUrl: config.renownUrl,
526
- switchboardUrl: config.switchboardUrl
527
- }))?.did;
523
+ const issuers = config.renownUrls?.length ? config.renownUrls : [void 0];
524
+ let did;
525
+ for (const renownUrl of issuers) {
526
+ did = (await (0, _renown_sdk.verifyAuthCredential)(token, {
527
+ audience: config.publicUrl,
528
+ renownUrl,
529
+ switchboardUrl: config.switchboardUrl
530
+ }).catch(() => void 0))?.did;
531
+ if (did) break;
532
+ }
528
533
  if (ttl > 0 && did) {
529
534
  cache.set(token, {
530
535
  did,
@@ -625,7 +630,7 @@ function registryAuthPlugin(config) {
625
630
  })();
626
631
  const plugin = createRegistryAuthPlugin((config.storeToken ? takeAuthStore(config.storeToken) : void 0) ?? createPgStore(createPgPool(databaseUrl()), { migrate: migrateOnBoot(void 0, config.databaseUrl) }), config.publicUrl ? createRenownVerifier({
627
632
  publicUrl: config.publicUrl,
628
- renownUrl: config.renownUrl
633
+ renownUrls: config.renownUrls
629
634
  }) : void 0);
630
635
  if (config.storeToken) markStoreLoaded(config.storeToken);
631
636
  return plugin;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@powerhousedao/registry",
3
- "version": "6.2.3-dev.67",
3
+ "version": "6.2.3-dev.69",
4
4
  "description": "Powerhouse package registry — resolves and manages document model package dependencies within the Powerhouse ecosystem.",
5
5
  "type": "module",
6
6
  "repository": {
@@ -31,8 +31,8 @@
31
31
  "dependencies": {
32
32
  "@aws-sdk/client-s3": "3.1087.0",
33
33
  "@electric-sql/pglite": "0.3.15",
34
- "@powerhousedao/shared": "6.2.3-dev.67",
35
- "@renown/sdk": "6.2.3-dev.67",
34
+ "@powerhousedao/shared": "6.2.3-dev.69",
35
+ "@renown/sdk": "6.2.3-dev.69",
36
36
  "@verdaccio/core": "9.0.0-next-9.31",
37
37
  "bcryptjs": "^2.4.3",
38
38
  "cmd-ts": "0.15.0",
@@ -43,7 +43,7 @@
43
43
  "verdaccio": "7.0.0-next-7.27"
44
44
  },
45
45
  "devDependencies": {
46
- "@powerhousedao/reactor-workflow": "6.2.3-dev.67",
46
+ "@powerhousedao/reactor-workflow": "6.2.3-dev.69",
47
47
  "@powerhousedao/verdaccio-s3-storage": "13.0.0",
48
48
  "@types/bcryptjs": "^2.4.6",
49
49
  "@types/express": "^4.17.21",