@@ -104,7 +104,7 @@ Future<void> resendSignUpCode(String username) async {
104
104
}
105
105
// #enddocregion resend-signup-code
106
106
107
- // #docregion handle-signin, handle-confirm-signin-sms, handle-confirm-signin-new-password, handle-confirm-signin-custom-challenge, handle-confirm-signin-reset-password, handle-confirm-signin-confirm-signup, handle-confirm-signin-done, handle-confirm-signin-mfa-selection, handle-confirm-signin-totp-setup, handle-confirm-signin-totp-code
107
+ // #docregion handle-signin, handle-confirm-signin-sms, handle-confirm-signin-new-password, handle-confirm-signin-custom-challenge, handle-confirm-signin-reset-password, handle-confirm-signin-confirm-signup, handle-confirm-signin-done, handle-confirm-signin-mfa-selection, handle-confirm-signin-totp-setup, handle-confirm-signin-totp-code, handle-confirm-signin-email
108
108
Future <void > _handleSignInResult (SignInResult result) async {
109
109
switch (result.nextStep.signInStep) {
110
110
// #enddocregion handle-signin, handle-confirm-signin-sms, handle-confirm-signin-new-password, handle-confirm-signin-custom-challenge, handle-confirm-signin-reset-password, handle-confirm-signin-confirm-signup, handle-confirm-signin-done, handle-confirm-signin-mfa-selection, handle-confirm-signin-totp-setup, handle-confirm-signin-totp-code
@@ -129,6 +129,11 @@ Future<void> _handleSignInResult(SignInResult result) async {
129
129
final codeDeliveryDetails = result.nextStep.codeDeliveryDetails! ;
130
130
_handleCodeDelivery (codeDeliveryDetails);
131
131
// #enddocregion handle-confirm-signin-sms
132
+ // #docregion handle-confirm-signin-email
133
+ case AuthSignInStep .confirmSignInWithEmailMfaCode:
134
+ final codeDeliveryDetails = result.nextStep.codeDeliveryDetails! ;
135
+ _handleCodeDelivery (codeDeliveryDetails);
136
+ // #enddocregion handle-confirm-signin-email
132
137
// #docregion handle-confirm-signin-new-password
133
138
case AuthSignInStep .confirmSignInWithNewPassword:
134
139
safePrint ('Enter a new password to continue signing in' );
0 commit comments