Refactor runtime bootstrap and ship control flows
This commit is contained in:
24
apps/backend/Auth/Runtime/AuthRuntimeModels.cs
Normal file
24
apps/backend/Auth/Runtime/AuthRuntimeModels.cs
Normal file
@@ -0,0 +1,24 @@
|
||||
namespace SpaceGame.Api.Auth.Runtime;
|
||||
|
||||
public sealed record UserAccount(
|
||||
Guid Id,
|
||||
string Email,
|
||||
string PasswordHash,
|
||||
DateTimeOffset CreatedAtUtc,
|
||||
IReadOnlyList<string> Roles);
|
||||
|
||||
public sealed record RefreshTokenRecord(
|
||||
Guid Id,
|
||||
Guid UserId,
|
||||
string TokenHash,
|
||||
DateTimeOffset CreatedAtUtc,
|
||||
DateTimeOffset ExpiresAtUtc,
|
||||
DateTimeOffset? RevokedAtUtc);
|
||||
|
||||
public sealed record PasswordResetTokenRecord(
|
||||
Guid Id,
|
||||
Guid UserId,
|
||||
string TokenHash,
|
||||
DateTimeOffset CreatedAtUtc,
|
||||
DateTimeOffset ExpiresAtUtc,
|
||||
DateTimeOffset? ConsumedAtUtc);
|
||||
Reference in New Issue
Block a user