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

Definition

Returns a flag indicating whether the specified token is valid for the given user and purpose.

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

Parameters

user
TUser TUser TUser

The user to validate the token against.

tokenProvider
String String String

The token provider used to generate the token.

purpose
String String String

The purpose the token should be generated for.

token
String String String

The token to validate

Returns

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

Applies to