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

Definition

Updates the recovery codes for the user while invalidating any previous recovery codes.

public virtual System.Threading.Tasks.Task ReplaceCodesAsync (TUser user, System.Collections.Generic.IEnumerable<string> recoveryCodes, System.Threading.CancellationToken cancellationToken);
abstract member ReplaceCodesAsync : 'User * seq<string> * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.ReplaceCodesAsync : 'User * seq<string> * System.Threading.CancellationToken -> System.Threading.Tasks.Task

Parameters

user
TUser TUser

The user to store new recovery codes for.

recoveryCodes
IEnumerable<String>

The new recovery codes for the user.

cancellationToken
CancellationToken CancellationToken

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

Returns

The new recovery codes for the user.

Implements

Applies to