diff --git a/packages/oidc4vc/lib/src/oidc4vc.dart b/packages/oidc4vc/lib/src/oidc4vc.dart index c18061dc5..ddf7cc03a 100644 --- a/packages/oidc4vc/lib/src/oidc4vc.dart +++ b/packages/oidc4vc/lib/src/oidc4vc.dart @@ -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'), ); } }