Skip to content

Commit

Permalink
rm log
Browse files Browse the repository at this point in the history
Signed-off-by: F-Node-Karlsruhe <christian.fries@eecc.de>
  • Loading branch information
F-Node-Karlsruhe committed Sep 15, 2023
1 parent b92bca2 commit 3858087
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/src/services/verifier/sdjwt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 };
Expand Down

0 comments on commit 3858087

Please sign in to comment.