
* Implemented the framework for Refresh Token. Needs testing. * Implemented Refresh Tokens. Users are issued tokens that last 7 days, just before the 7 days, the UI will request a new token to avoid having to re-authenticate.
12 lines
307 B
C#
12 lines
307 B
C#
|
|
namespace API.DTOs
|
|
{
|
|
public class UserDto
|
|
{
|
|
public string Username { get; init; }
|
|
public string Token { get; init; }
|
|
public string RefreshToken { get; init; }
|
|
public string ApiKey { get; init; }
|
|
public UserPreferencesDto Preferences { get; set; }
|
|
}
|
|
}
|