We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0d725dc commit 69abe75Copy full SHA for 69abe75
packages/amplify_core/doc/lib/auth.dart
@@ -117,6 +117,9 @@ Future<void> _handleSignInResult(SignInResult result) async {
117
// #docregion handle-confirm-signin-mfa-setup-selection
118
case AuthSignInStep.continueSignInWithMfaSetupSelection:
119
final allowedMfaTypes = result.nextStep.allowedMfaTypes!;
120
+ if (allowedMfaTypes.length == 1) {
121
+ return _handleMfaSetupSelection(allowedMfaTypes.first);
122
+ }
123
final selection = await _promptUserPreference(allowedMfaTypes);
124
return _handleMfaSetupSelection(selection);
125
// #enddocregion handle-confirm-signin-mfa-setup-selection
0 commit comments