Skip to content

Commit

Permalink
feat: change key to singleton to avoid call to azure on init
Browse files Browse the repository at this point in the history
  • Loading branch information
reecerussell committed Oct 27, 2023
1 parent 9132c38 commit 5e4b868
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Rusty.Jwt.Azure/Extensions/JwtServiceBuilderExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down

0 comments on commit 5e4b868

Please sign in to comment.