UserManager<TUser>.VerifyChangePhoneNumberTokenAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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, System::String ^ token, System::String ^ 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
The user to validate the token against.
- token
- String
The telephone number change token to validate.
- phoneNumber
- 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.