Skip to content

CompleteEmailVerificationRequest ​

What CompleteVerificationAsync and CompleteEmailChangeAsync both take to redeem a token. The endpoint receiving it decides which flow is being completed, so the record carries no field naming one and a link cannot be spent on the wrong path. The name refers to the EmailVerificationToken being redeemed rather than to the outcome, which is why it reads as a verification on the change path too.

Fields

Token: string
The token from the verification email, submitted in the form it was sent rather than decoded or trimmed. It identifies the user on its own, so nothing else about the account is submitted with it.

Type signature ​

csharp
public sealed record CompleteEmailVerificationRequest
{
    public required string Token { get; set; }
}

All packages are released under the MIT License.