Skip to content

Commit b0c03b7

Browse files
committed
chore: add docs and formatting
1 parent f604447 commit b0c03b7

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

packages/amplify_core/doc/lib/auth.dart

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ Future<void> resendSignUpCode(String username) async {
104104
}
105105
// #enddocregion resend-signup-code
106106

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
108108
Future<void> _handleSignInResult(SignInResult result) async {
109109
switch (result.nextStep.signInStep) {
110110
// #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 {
129129
final codeDeliveryDetails = result.nextStep.codeDeliveryDetails!;
130130
_handleCodeDelivery(codeDeliveryDetails);
131131
// #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
132137
// #docregion handle-confirm-signin-new-password
133138
case AuthSignInStep.confirmSignInWithNewPassword:
134139
safePrint('Enter a new password to continue signing in');

packages/amplify_core/lib/src/types/auth/sign_in/auth_sign_in_step.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ enum AuthSignInStep {
1010
/// an MFA method.
1111
continueSignInWithMfaSelection,
1212

13-
/// The sign-in is not complete and the user must select an MFA method to setup.
13+
/// The sign-in is not complete and the user must select an MFA method to setup.
1414
continueSignInWithMfaSetupSelection,
1515

1616
/// The sign-in is not complete and a TOTP authenticator app must be

0 commit comments

Comments
 (0)