Skip to content

Commit a08fb6f

Browse files
authored
fix warning IdentityModel 7-breaking-change (#1416)
1 parent da71e32 commit a08fb6f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/KubernetesClient/Authentication/OidcTokenProvider.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,12 @@ public async Task<AuthenticationHeaderValue> GetAuthenticationHeaderAsync(Cancel
3232

3333
private DateTime getExpiryFromToken()
3434
{
35-
int expiry;
35+
long expiry;
3636
var handler = new JwtSecurityTokenHandler();
3737
try
3838
{
3939
var token = handler.ReadJwtToken(_idToken);
40-
expiry = token.Payload.Exp ?? 0;
40+
expiry = token.Payload.Expiration ?? 0;
4141
}
4242
catch
4343
{

0 commit comments

Comments
 (0)