Initial commit
This commit is contained in:
13
MealPlan.Api/DTOs/Auth/TokenResponseDto.cs
Normal file
13
MealPlan.Api/DTOs/Auth/TokenResponseDto.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
namespace MealPlan.Api.DTOs.Auth;
|
||||
|
||||
/// <summary>Token pair returned by login and refresh.</summary>
|
||||
public class TokenResponseDto
|
||||
{
|
||||
public string AccessToken { get; set; } = string.Empty;
|
||||
public string RefreshToken { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>Access-token lifetime in seconds (clients use it to schedule silent refresh).</summary>
|
||||
public int ExpiresInSeconds { get; set; }
|
||||
|
||||
public string TokenType { get; set; } = "Bearer";
|
||||
}
|
||||
Reference in New Issue
Block a user