Skip to content

Commit

Permalink
feat: fixing exclude _sd_alg when no disclosure (#120)
Browse files Browse the repository at this point in the history
Signed-off-by: Lukas <Lukas@hopae.io>
Signed-off-by: Mirko Mollik <mirko.mollik@fit.fraunhofer.de>
  • Loading branch information
lukasjhan authored and cre8 committed Mar 8, 2024
1 parent 1b306af commit dcaf1f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ export abstract class SDJwtInstance<ExtendedPayload extends SdJwtPayload> {
header,
payload: {
...packedClaims,
_sd_alg: hashAlg,
_sd_alg: disclosureFrame ? hashAlg : undefined,
},
});
await this.SignJwt(jwt);
Expand Down

0 comments on commit dcaf1f6

Please sign in to comment.