Skip to content

Commit 66ad860

Browse files
author
ekjotmultani
committed
Merge branch 'storagewereoutput-update' of https://github.com/aws-amplify/amplify-flutter into storage-output-update
2 parents b6f8719 + cc6c55b commit 66ad860

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/amplify_core/doc/lib/auth.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,13 +110,13 @@ Future<void> _handleSignInResult(SignInResult result) async {
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
111111
// #docregion handle-confirm-signin-mfa-selection
112112
case AuthSignInStep.continueSignInWithMfaSelection:
113-
final allowedMfaTypes = result.nextStep.allowedMfaTypes;
113+
final allowedMfaTypes = result.nextStep.allowedMfaTypes!;
114114
final selection = await _promptUserPreference(allowedMfaTypes);
115115
return _handleMfaSelection(selection);
116116
// #enddocregion handle-confirm-signin-mfa-selection
117117
// #docregion handle-confirm-signin-totp-setup
118118
case AuthSignInStep.continueSignInWithTotpSetup:
119-
final totpSetupDetails = result.nextStep.totpSetupDetails;
119+
final totpSetupDetails = result.nextStep.totpSetupDetails!;
120120
final setupUri = totpSetupDetails.getSetupUri(appName: 'MyApp');
121121
safePrint('Open URI to complete setup: $setupUri');
122122
// #enddocregion handle-confirm-signin-totp-setup
@@ -255,7 +255,7 @@ Future<void> signOutGlobally() async {
255255
if (result is CognitoCompleteSignOut) {
256256
safePrint('Sign out completed successfully');
257257
} else if (result is CognitoPartialSignOut) {
258-
final globalSignOutException = result.globalSignOutException;
258+
final globalSignOutException = result.globalSignOutException!;
259259
final accessToken = globalSignOutException.accessToken;
260260
// Retry the global sign out using the access token, if desired
261261
// ...

0 commit comments

Comments
 (0)