This commit is contained in:
@@ -9,5 +9,5 @@ public record Token
|
||||
public string TokenType { get; init; } = String.Empty;
|
||||
|
||||
//For JSON deserialization
|
||||
public int ExpiresIn { get => (int)DateTimeOffset.Now.Subtract(Expires).TotalSeconds; init => Expires = DateTimeOffset.Now.AddSeconds(value); }
|
||||
public int ExpiresIn { get => (int)Expires.Subtract(DateTimeOffset.Now).TotalSeconds; init => Expires = DateTimeOffset.Now.AddSeconds(value); }
|
||||
}
|
||||
Reference in New Issue
Block a user