Skip to content

Commit 630adad

Browse files
committed
chore: add email to updateMfaPreference API
1 parent edaf999 commit 630adad

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
@@ -892,13 +892,15 @@ class AmplifyAuthCognitoDart extends AuthPluginInterface
892892
Future<void> updateMfaPreference({
893893
MfaPreference? sms,
894894
MfaPreference? totp,
895+
MfaPreference? email,
895896
}) async {
896897
final tokens = await _stateMachine.getUserPoolTokens();
897898
final accessToken = tokens.accessToken.raw;
898899
return _cognitoIdp.setMfaSettings(
899900
accessToken: accessToken,
900901
sms: sms,
901902
totp: totp,
903+
email: email,
902904
);
903905
}
904906

0 commit comments

Comments
 (0)