From 7349f885f521b66353efd0a6e5919f7746b71235 Mon Sep 17 00:00:00 2001 From: MrSmoke <709976+MrSmoke@users.noreply.github.com> Date: Thu, 20 Apr 2023 12:58:55 +1000 Subject: [PATCH] Remove Async suffix --- .../OAuth.AspNetCore/src/HttpContextTokenStore.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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);