Skip to content

Commit

Permalink
any clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
OR13 committed Jul 2, 2024
1 parent e505e84 commit c624658
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/cr1/credential/issuer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const coseSign1CredentialIssuer = (issuer: RequestCredentialIssuer) => {
if (issuer.signer === undefined) {
throw new Error('No signer available.')
}
const claims = claimset.parse(decoder.decode(credential.claimset)) as any
const claims = claimset.parse(decoder.decode(credential.claimset))
return issuer.signer.sign(encoder.encode(JSON.stringify(claims)))
}
}
Expand All @@ -25,7 +25,7 @@ const jwtCredentialIssuer = (issuer: RequestCredentialIssuer) => {
if (issuer.signer === undefined) {
throw new Error('No signer available.')
}
const claims = claimset.parse(decoder.decode(credential.claimset)) as any
const claims = claimset.parse(decoder.decode(credential.claimset))
return issuer.signer.sign(encoder.encode(JSON.stringify(claims)))
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/cr1/validator/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export const validator = ({ resolver }: RequestValidator) => {
purpose: 'schema-validation'
})
if (credentialSchema === true) {
validation.schema[schema.id] = { validation: 'ignored' } as any
validation.schema[schema.id] = { validation: 'ignored' }
continue;
}
const schemaContent = decoder.decode(credentialSchema.content)
Expand Down

0 comments on commit c624658

Please sign in to comment.