UserStoreBase<TUser,TKey,TUserClaim,TUserLogin,TUserToken>.GetTokenAsync(TUser, String, String, CancellationToken) UserStoreBase<TUser,TKey,TUserClaim,TUserLogin,TUserToken>.GetTokenAsync(TUser, String, String, CancellationToken) Method

Definition

Returns the token value.

public virtual System.Threading.Tasks.Task<string> GetTokenAsync (TUser user, string loginProvider, string name, System.Threading.CancellationToken cancellationToken);
abstract member GetTokenAsync : 'User * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<string>
override this.GetTokenAsync : 'User * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<string>

Parameters

user
TUser TUser

The user.

loginProvider
String String

The authentication provider for the token.

name
String String

The name of the token.

cancellationToken
CancellationToken CancellationToken

The CancellationToken used to propagate notifications that the operation should be canceled.

Returns

The Task that represents the asynchronous operation.

Implements

Applies to