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

Definition

Generates a token for the given user and purpose.

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

Parameters

user
TUser TUser TUser

The user the token will be for.

tokenProvider
String String String

The provider which will generate the token.

purpose
String String String

The purpose the token will be for.

Returns

The Task that represents result of the asynchronous operation, a token for the given user and purpose.

Applies to