diff --git a/src/RestClient/Authenticators/OAuth.AspNetCore/src/HttpContextTokenStore.cs b/src/RestClient/Authenticators/OAuth.AspNetCore/src/HttpContextTokenStore.cs index 76b5665..a619baa 100644 --- a/src/RestClient/Authenticators/OAuth.AspNetCore/src/HttpContextTokenStore.cs +++ b/src/RestClient/Authenticators/OAuth.AspNetCore/src/HttpContextTokenStore.cs @@ -42,7 +42,7 @@ public HttpContextTokenStore(IHttpContextAccessor httpContextAccessor, ILoggerFa // Only access tokens have expire time if (tokenType == TokenType.AccessToken) - expireTime = GetTokenExpireTimeAsync(properties); + expireTime = GetTokenExpireTime(properties); return CreateToken(tokenType, tokenValue, expireTime); } @@ -135,7 +135,7 @@ private HttpContext GetHttpContext() }; } - private static DateTimeOffset? GetTokenExpireTimeAsync(AuthenticationProperties properties) + private static DateTimeOffset? GetTokenExpireTime(AuthenticationProperties properties) { var token = properties.GetTokenValue(ExpiresAtKey);