Skip to content

Commit b175d26

Browse files
committed
chore: add email to updateMfaPreference API
1 parent 1e9e9da commit b175d26

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/auth/amplify_auth_cognito_dart/lib/src/auth_plugin_impl.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -891,13 +891,15 @@ class AmplifyAuthCognitoDart extends AuthPluginInterface
891891
Future<void> updateMfaPreference({
892892
MfaPreference? sms,
893893
MfaPreference? totp,
894+
MfaPreference? email,
894895
}) async {
895896
final tokens = await _stateMachine.getUserPoolTokens();
896897
final accessToken = tokens.accessToken.raw;
897898
return _cognitoIdp.setMfaSettings(
898899
accessToken: accessToken,
899900
sms: sms,
900901
totp: totp,
902+
email: email,
901903
);
902904
}
903905

0 commit comments

Comments
 (0)