Skip to content

Commit

Permalink
cleaning
Browse files Browse the repository at this point in the history
  • Loading branch information
OR13 committed Jul 8, 2023
1 parent 9df4343 commit 1467d07
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/w3c/validator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ const ajv = new Ajv({
export const validator = async ({ issuer, credentialStatus, credentialSchema }: RequestValidator) => {
// TODO: decode and precompile / cache anything we can before returning the validator

const validate = async (jwt: string) => {
const validate = async (jwt: any) => {
const issuerPublicKey = await issuer(jwt)
const { payload } = await verifyWithKey({ jws: jwt as any, publicKey: issuerPublicKey })
const { payload } = await verifyWithKey({ jws: jwt, publicKey: issuerPublicKey })
const claimset = JSON.parse(payload.toString())
const statusLists: any = {}
if (claimset.credentialStatus) {
Expand Down

0 comments on commit 1467d07

Please sign in to comment.