Skip to content

Commit

Permalink
fix: Make sure we do not use the jwk thumbprint as kid default value …
Browse files Browse the repository at this point in the history
…when not in EBSI
  • Loading branch information
nklomp committed Jul 7, 2024
1 parent 9a4cafd commit 9a3bf56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/oid4vci-holder/src/agent/OID4VCIHolderService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ export const getIdentifierOpts = async (args: GetIdentifierArgs): Promise<Identi
}
}
const key: _ExtendedIKey = await getAuthenticationKey(identifier, context, identifier.did.startsWith('did:ebsi'), true)
const kid: string = key.meta?.jwkThumbprint ?? key.meta.verificationMethod?.id ?? key.kid
const kid: string = (identifier.did.startsWith('did:ebsi:') ? key.meta?.jwkThumbprint : key.meta.verificationMethod?.id) ?? key.kid

return { identifier, key, kid }
}
Expand Down

0 comments on commit 9a3bf56

Please sign in to comment.