UserStoreBase<TUser,TKey,TUserClaim,TUserLogin,TUserToken>.ReplaceCodesAsync 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<System::String ^> ^ recoveryCodes, System::Threading::CancellationToken cancellationToken);
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
Public Overridable Function ReplaceCodesAsync (user As TUser, recoveryCodes As IEnumerable(Of String), cancellationToken As CancellationToken) As Task

Parameters

user
TUser

The user to store new recovery codes for.

recoveryCodes
IEnumerable<String>

The new recovery codes for the user.

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