We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c587e0a + e03f3b2 commit 8cf708aCopy full SHA for 8cf708a
src/NetDevPack.Security.Jwt.Core/Model/Key.cs
@@ -28,10 +28,8 @@ public KeyMaterial(CryptographicKey cryptographicKey)
28
29
public JsonWebKey GetSecurityKey()
30
{
31
- return JsonSerializer.Deserialize<JsonWebKey>(Parameters, new JsonSerializerOptions()
32
- {
33
- PropertyNameCaseInsensitive = true,
34
- });
+ var jsonWebKey = JsonWebKey.Create(Parameters);
+ return jsonWebKey;
35
}
36
37
public void Revoke(string reason=default)
0 commit comments