Skip to content

Commit

Permalink
Activating terminated and verified issuers
Browse files Browse the repository at this point in the history
  • Loading branch information
vitorpamplona committed Jan 18, 2022
1 parent 36c2cb8 commit cae5e24
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/resolver.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export function addCachedKeys(newIssuerSet) {
for (const [iss, value] of Object.entries(newIssuerSet)) {
value.keys.forEach(key => {
TRUST_REGISTRY[iss + "#" + key.kid] = {
"displayName": { "en": "Untrusted Issuer: " + iss.replace("https://", "") },
"displayName": { "en": "Untrusted URL: " + iss.replace("https://", "") },
"entityType": "issuer",
"status": "untrusted",
"validFromDT": "2021-01-01T01:00:00.000Z",
Expand Down Expand Up @@ -78,7 +78,7 @@ export async function resolveKey(iss, kID) {
LAST_FETCH = new Date();
}

if (TRUST_REGISTRY[kidIndex] && TRUST_REGISTRY[kidIndex].status == "current") {
if (TRUST_REGISTRY[kidIndex]) {
return TRUST_REGISTRY[kidIndex];
}

Expand Down

0 comments on commit cae5e24

Please sign in to comment.