Skip to content

Commit

Permalink
feat: Remove alg and use from headers of jwt #3202
Browse files Browse the repository at this point in the history
  • Loading branch information
bibash28 committed Dec 18, 2024
1 parent 33344cc commit ab78971
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/oidc4vc/lib/src/oidc4vc.dart
Original file line number Diff line number Diff line change
Expand Up @@ -1649,7 +1649,9 @@ class OIDC4VC {
case ProofHeaderType.jwk:
vpBuilder.setProtectedHeader(
'jwk',
tokenParameters.publicJWK,
tokenParameters.publicJWK
..removeWhere((key, value) => key == 'use')
..removeWhere((key, value) => key == 'alg'),
);
}
}
Expand Down

0 comments on commit ab78971

Please sign in to comment.