Share via


IUserTwoFactorRecoveryCodeStore<TUser>.ReplaceCodesAsync Method

Definition

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

public:
 System::Threading::Tasks::Task ^ ReplaceCodesAsync(TUser user, System::Collections::Generic::IEnumerable<System::String ^> ^ recoveryCodes, System::Threading::CancellationToken cancellationToken);
public 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
Public 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.

Applies to