refactor Token to AccessToken

This commit is contained in:
Mathias Beaulieu-Duncan 2024-12-20 02:29:20 -05:00
parent e2e66e82ae
commit fe6190bf38
Signed by: mathias
GPG Key ID: 8C3667DADE3B6303
2 changed files with 2 additions and 2 deletions

View File

@ -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; }

View File

@ -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,