Struct EmailVerificationVerifyResult

Assembly: redb.Identity.Core.dll

Result of .

public readonly record struct EmailVerificationVerifyResult : IEquatable<EmailVerificationVerifyResult>

Implements

Properties

Email

Lower-cased e-mail snapshot bound at issue time; empty when is false.

public string Email { get; init; }

Reason

Diagnostic reason; values: ok, not_found, expired, already_consumed, bad_token.

public string Reason { get; init; }

Success

Whether the token verified AND the row was successfully consumed.

public bool Success { get; init; }

UserId

Owner user id when is true; otherwise 0.

public long UserId { get; init; }

Constructors