Skip to content

Commit

Permalink
chore: add email to updateMfaPreference API
Browse files Browse the repository at this point in the history
  • Loading branch information
khatruong2009 committed Sep 25, 2024
1 parent edaf999 commit 630adad
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -892,13 +892,15 @@ class AmplifyAuthCognitoDart extends AuthPluginInterface
Future<void> updateMfaPreference({
MfaPreference? sms,
MfaPreference? totp,
MfaPreference? email,
}) async {
final tokens = await _stateMachine.getUserPoolTokens();
final accessToken = tokens.accessToken.raw;
return _cognitoIdp.setMfaSettings(
accessToken: accessToken,
sms: sms,
totp: totp,
email: email,
);
}

Expand Down

0 comments on commit 630adad

Please sign in to comment.