blob: 0a036257f322650774b4916f102c47dcb64ec107 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
// SPDX-FileCopyrightText: 2026 Progmasoft <support@progmasoft.com>
// SPDX-License-Identifier: AGPL-3.0-or-later WITH AdditionRef-Progmasoft-Patent-Grant-1.0
namespace XSharp.Web.Api.Data;
internal sealed class AuthChallenge
{
public Guid Id { get; init; } = Guid.NewGuid();
public required Guid UserId { get; init; }
public required string Purpose { get; init; }
public required byte[] CodeDigest { get; init; }
public DateTimeOffset ExpiresAt { get; init; }
public int FailedAttempts { get; set; }
public DateTimeOffset? ConsumedAt { get; set; }
}
|