From 3858087c2eb67592ad778a797b4eb9cfc82a91af Mon Sep 17 00:00:00 2001 From: F-Node-Karlsruhe Date: Fri, 15 Sep 2023 13:20:03 +0200 Subject: [PATCH] rm log Signed-off-by: F-Node-Karlsruhe --- api/src/services/verifier/sdjwt.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/src/services/verifier/sdjwt.ts b/api/src/services/verifier/sdjwt.ts index d42733e..218c4e1 100644 --- a/api/src/services/verifier/sdjwt.ts +++ b/api/src/services/verifier/sdjwt.ts @@ -40,8 +40,6 @@ export async function verifySDJWT(verifiable: string, nonce?: string, aud?: stri const absoluteDidUrl = kid && kid.startsWith(iss) ? kid : `${iss}#${kid}` - console.log(await dereferenceDID(absoluteDidUrl)) - let { publicKeyJwk } = (await dereferenceDID(absoluteDidUrl)).document; // in case of did:key use jwk from jwt @@ -69,6 +67,8 @@ export async function verifySDJWT(verifiable: string, nonce?: string, aud?: stri if (now < verified.claimset.iat) throw new Error('Credential is not yet valid!') if (verified.claimset.exp && now > verified.claimset.exp) throw new Error('Credential expired!') + console.log(verified.claimset) + } catch (error: any) { console.log(error) return { verified: false, error: error.message };