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 85a1993 commit 2c26a3dCopy full SHA for 2c26a3d
src/KubernetesClient/Authentication/GcpTokenProvider.cs
@@ -20,13 +20,13 @@ public GcpTokenProvider(string gcloudCli)
20
_gcloudCli = gcloudCli;
21
}
22
23
- public async Task<AuthenticationHeaderValue> GetAuthenticationHeaderAsync(CancellationToken cancellationToken)
+ public Task<AuthenticationHeaderValue> GetAuthenticationHeaderAsync(CancellationToken cancellationToken)
24
{
25
if (DateTime.UtcNow.AddSeconds(30) > _expiry)
26
27
RefreshToken();
28
29
- return new AuthenticationHeaderValue("Bearer", _token);
+ return Task.FromResult(new AuthenticationHeaderValue("Bearer", _token));
30
31
32
private void RefreshToken()
0 commit comments