Skip to content

Commit

Permalink
chore: only kid or jwk
Browse files Browse the repository at this point in the history
  • Loading branch information
sanderPostma committed Jan 31, 2025
1 parent 84bbb0f commit 06a949d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/oid4vci-issuer/src/functions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export function getJwtVerifyCallback({ verifyOpts }: { verifyOpts?: JWTVerifyOpt
const header = jwtDecode<JWTHeader>(args.jwt, { header: true })
const payload = jwtDecode<JWTPayload>(args.jwt, { header: false })
const kid = args.kid ?? header.kid
const jwk = identifier.jwks.find((jwkInfo) => jwkInfo.jwk.kid == kid)
const jwk = !kid ? jwkInfo.jwk : undefined // TODO double-check if this is correct
return {
alg,
...identifier,
Expand Down

0 comments on commit 06a949d

Please sign in to comment.