From 4e9119c8c733d26cfcf49a3e29ee485ab52dbb49 Mon Sep 17 00:00:00 2001 From: Mathias Beaulieu-Duncan Date: Fri, 20 Dec 2024 02:29:20 -0500 Subject: [PATCH] refactor Token to AccessToken --- .../JwtTokenManagerResult.cs | 2 +- OpenHarbor.JwtTokenManager/JwtTokenManagerService.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/OpenHarbor.JwtTokenManager.Abstractions/JwtTokenManagerResult.cs b/OpenHarbor.JwtTokenManager.Abstractions/JwtTokenManagerResult.cs index e78b68d..7ee9c2d 100644 --- a/OpenHarbor.JwtTokenManager.Abstractions/JwtTokenManagerResult.cs +++ b/OpenHarbor.JwtTokenManager.Abstractions/JwtTokenManagerResult.cs @@ -2,7 +2,7 @@ namespace OpenHarbor.JwtTokenManager.Abstractions; public class JwtTokenManagerResult { - public required string Token { get; set; } + public required string AccessToken { get; set; } public required TokenType TokenType { get; set; } public required DateTime ExpiresAt { get; set; } public int ExpiresIn { get; set; } diff --git a/OpenHarbor.JwtTokenManager/JwtTokenManagerService.cs b/OpenHarbor.JwtTokenManager/JwtTokenManagerService.cs index e2eb49e..f344f56 100644 --- a/OpenHarbor.JwtTokenManager/JwtTokenManagerService.cs +++ b/OpenHarbor.JwtTokenManager/JwtTokenManagerService.cs @@ -71,7 +71,7 @@ public class JwtTokenManagerService(JwtTokenManagerOptions options, IHttpClientF var expiresAt = now.Add(expiration); var result = new JwtTokenManagerResult { - Token = tokenResponse.AccessToken, + AccessToken = tokenResponse.AccessToken, TokenType = tokenType, ExpiresAt = expiresAt, ExpiresIn = tokenResponse.ExpiresIn,