25 lines
529 B
C#
25 lines
529 B
C#
using System.Text.Json.Serialization;
|
|
|
|
namespace SlpModularCms.Core.Identity.Models;
|
|
|
|
/// <summary>
|
|
/// Model voor het retourneren van authenticatie tokens.
|
|
/// </summary>
|
|
public record TokenResponse(
|
|
string AccessToken,
|
|
[property: JsonIgnore] string RefreshToken,
|
|
DateTimeOffset ExpiresAt,
|
|
UserResponse User
|
|
);
|
|
|
|
/// <summary>
|
|
/// Model voor gebruikersinformatie in de auth response.
|
|
/// </summary>
|
|
public record UserResponse(
|
|
Guid Id,
|
|
string Email,
|
|
string Name,
|
|
string Role,
|
|
bool IsActive
|
|
);
|