refactor Token to AccessToken
All checks were successful
Publish NuGets / build (release) Successful in 18s

This commit is contained in:
Mathias Beaulieu-Duncan 2024-12-20 02:29:20 -05:00
parent e2e66e82ae
commit 4e9119c8c7
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 class JwtTokenManagerResult
{ {
public required string Token { get; set; } public required string AccessToken { get; set; }
public required TokenType TokenType { get; set; } public required TokenType TokenType { get; set; }
public required DateTime ExpiresAt { get; set; } public required DateTime ExpiresAt { get; set; }
public int ExpiresIn { 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 expiresAt = now.Add(expiration);
var result = new JwtTokenManagerResult var result = new JwtTokenManagerResult
{ {
Token = tokenResponse.AccessToken, AccessToken = tokenResponse.AccessToken,
TokenType = tokenType, TokenType = tokenType,
ExpiresAt = expiresAt, ExpiresAt = expiresAt,
ExpiresIn = tokenResponse.ExpiresIn, ExpiresIn = tokenResponse.ExpiresIn,