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.
1 parent 8e17d6e commit 08546daCopy full SHA for 08546da
FirebaseAdmin/FirebaseAdmin/Auth/HttpPublicKeySource.cs
@@ -72,11 +72,11 @@ public async Task<IReadOnlyList<PublicKey>> GetPublicKeysAsync(
72
73
try
74
{
75
+ var now = _clock.UtcNow;
76
if (_cachedKeys == null || _clock.UtcNow >= _expirationTime)
77
78
using (var httpClient = _clientFactory.CreateDefaultHttpClient())
79
- var now = _clock.UtcNow;
80
var response = await httpClient.GetAsync(_certUrl, cancellationToken)
81
.ConfigureAwait(false);
82
response.EnsureSuccessStatusCode();
0 commit comments