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

Definition

Generates a token for the given user and purpose.

public:
 virtual System::Threading::Tasks::Task<System::String ^> ^ GenerateUserTokenAsync(TUser user, System::String ^ tokenProvider, System::String ^ 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

The user the token will be for.

tokenProvider
String

The provider which will generate the token.

purpose
String

The purpose the token will be for.

Returns

Task<String>

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

Applies to