Добавьте файлы проекта.
This commit is contained in:
19
PlaylistShared.Shared/DTO/LoginResponse.cs
Normal file
19
PlaylistShared.Shared/DTO/LoginResponse.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace PlaylistShared.Shared.DTO;
|
||||
|
||||
/// <summary>Ответ после успешного входа.</summary>
|
||||
public class LoginResponse
|
||||
{
|
||||
/// <summary>JWT токен доступа.</summary>
|
||||
[JsonPropertyName("token")]
|
||||
public string Token { get; set; } = null!;
|
||||
|
||||
/// <summary>Refresh токен для обновления сессии.</summary>
|
||||
[JsonPropertyName("refreshToken")]
|
||||
public string RefreshToken { get; set; } = null!;
|
||||
|
||||
/// <summary>Время истечения токена (UTC).</summary>
|
||||
[JsonPropertyName("expiration")]
|
||||
public DateTime Expiration { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user