Skip to content

Commit

Permalink
Alg name for encryption fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
kirill-abblix committed Apr 19, 2024
1 parent 2e9aa80 commit 1154fbf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Abblix.Jwt/JsonWebKeyFactory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public static class JsonWebKeyFactory
var algorithm = usage switch
{
JsonWebKeyUseNames.Sig => "RS256",
JsonWebKeyUseNames.Enc => "RSA-OAEP",
JsonWebKeyUseNames.Enc => "RS256",
_ => throw new ArgumentException("Invalid usage specified. Valid options are 'sig' for signing or 'enc' for encryption.", nameof(usage))
};

Expand Down

0 comments on commit 1154fbf

Please sign in to comment.