public async Task UpdateSoftwareMfaSettingsAsync()

in src/Amazon.Extensions.CognitoAuthentication/CognitoUser.cs [604:616]


        public async Task UpdateSoftwareMfaSettingsAsync(bool isPreferred, bool isEnabled, CancellationToken cancellationToken)
        {
            EnsureUserAuthenticated();
            SetUserMFAPreferenceRequest request = new SetUserMFAPreferenceRequest {
                AccessToken = SessionTokens.AccessToken,
                SoftwareTokenMfaSettings = new SoftwareTokenMfaSettingsType() {
                    PreferredMfa = isPreferred,
                    Enabled = isEnabled
                }
            };

            await Provider.SetUserMFAPreferenceAsync(request, cancellationToken).ConfigureAwait(false);
        }