refactor Token to AccessToken
All checks were successful
Publish NuGets / build (release) Successful in 18s
All checks were successful
Publish NuGets / build (release) Successful in 18s
This commit is contained in:
parent
e2e66e82ae
commit
4e9119c8c7
@ -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; }
|
||||||
|
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user