Closed mkryshak closed 3 years ago
This looks like a simple RegEx match issue on line 696:
sub encode_jwt { my %args = @_; croak "JWT: missing 'alg'" unless $args{alg}; my $ser = $args{serialization} || 'compact'; if ($args{alg} =~ /^(none|EdDSA|((HS|RS|PS|ES)(512|384|256)))$/) {
Setting alg to ES256K will not match this RegEx and instead default to JWE instead of JWS.
alg
ES256K
JWE
JWS
This looks like a simple RegEx match issue on line 696:
Setting
alg
toES256K
will not match this RegEx and instead default toJWE
instead ofJWS
.