14 lines
362 B
C#
14 lines
362 B
C#
namespace RecNet.Application.Common.Tokens;
|
|
|
|
public sealed record TokenVerifyResult(
|
|
bool Succeeded,
|
|
Guid? ProfileId,
|
|
Guid? TokenVersion)
|
|
{
|
|
public static TokenVerifyResult Success(Guid profileId, Guid tokenVersion)
|
|
=> new(true, profileId, tokenVersion);
|
|
|
|
public static TokenVerifyResult Failure()
|
|
=> new(false, null, null);
|
|
}
|