UserManager<TUser>.VerifyChangePhoneNumberTokenAsync(TUser, String, String) UserManager<TUser>.VerifyChangePhoneNumberTokenAsync(TUser, String, String) UserManager<TUser>.VerifyChangePhoneNumberTokenAsync(TUser, String, String) Method

Definition

Returns a flag indicating whether the specified user's phone number change verification token is valid for the given phoneNumber.

public virtual System.Threading.Tasks.Task<bool> VerifyChangePhoneNumberTokenAsync (TUser user, string token, string phoneNumber);
abstract member VerifyChangePhoneNumberTokenAsync : 'User * string * string -> System.Threading.Tasks.Task<bool>
override this.VerifyChangePhoneNumberTokenAsync : 'User * string * string -> System.Threading.Tasks.Task<bool>
Public Overridable Function VerifyChangePhoneNumberTokenAsync (user As TUser, token As String, phoneNumber As String) As Task(Of Boolean)

Parameters

user
TUser TUser TUser

The user to validate the token against.

token
String String String

The telephone number change token to validate.

phoneNumber
String String String

The telephone number the token was generated for.

Returns

The Task that represents the asynchronous operation, returning true if the token is valid, otherwise false.

Applies to