Skip to content

Commit

Permalink
Fix KeyBinding not being propogated bug (#243)
Browse files Browse the repository at this point in the history
Signed-off-by: Oren <[email protected]>
Signed-off-by: Mirko Mollik <[email protected]>
Co-authored-by: Mirko Mollik <[email protected]>
  • Loading branch information
orenyomtov and cre8 authored Jul 19, 2024
1 parent 5f57edc commit 6747319
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/sd-jwt-vc/src/sd-jwt-vc-instance.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,11 @@ export class SDJwtVcInstance extends SDJwtInstance<SdJwtVcPayload> {
const result = await super
.verify(encodedSDJwt, requiredClaimKeys, requireKeyBindings)
.then((res) => {
return { payload: res.payload as SdJwtVcPayload, header: res.header };
return {
payload: res.payload as SdJwtVcPayload,
header: res.header,
kb: res.kb,
};
});

if (result.payload.status) {
Expand Down
1 change: 1 addition & 0 deletions packages/sd-jwt-vc/test/app-e2e.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,7 @@ async function JSONtest(filename: string) {
expect(verified).toBeDefined();
expect(verified).toStrictEqual({
header: { alg: 'EdDSA', typ: 'vc+sd-jwt' },
kb: undefined,
payload,
});
}
Expand Down

0 comments on commit 6747319

Please sign in to comment.