UserManager<TUser>.VerifyUserTokenAsync 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 token
is valid for
the given user
and purpose
.
public:
virtual System::Threading::Tasks::Task<bool> ^ VerifyUserTokenAsync(TUser user, System::String ^ tokenProvider, System::String ^ purpose, System::String ^ token);
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
The user to validate the token against.
- tokenProvider
- String
The token provider used to generate the token.
- purpose
- String
The purpose the token should be generated for.
- token
- String
The token to validate
Returns
The Task that represents the asynchronous operation, returning true if the token
is valid, otherwise false.