diff --git a/Rusty.Jwt.Azure/Extensions/JwtServiceBuilderExtensions.cs b/Rusty.Jwt.Azure/Extensions/JwtServiceBuilderExtensions.cs index 00feea3..ab5e1d4 100644 --- a/Rusty.Jwt.Azure/Extensions/JwtServiceBuilderExtensions.cs +++ b/Rusty.Jwt.Azure/Extensions/JwtServiceBuilderExtensions.cs @@ -15,7 +15,7 @@ public static IJwtServiceBuilder AddAzureKey(this IJwtServiceBuilder builder, HashAlgorithm hashAlgorithm = HashAlgorithm.SHA256, SigningKeyMode mode = SigningKeyMode.SignAndVerify) { - builder.Services.AddTransient(_ => + builder.Services.AddSingleton(_ => { var credential = credentials ?? new DefaultAzureCredential();