You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(auth): add missing state transitions during auto sign in (#4065)
* fix(auth): add missing state transitions during auto sign in
* add unit test
* fix swiftformat issues
---------
Co-authored-by: Abhash Kumar Singh <[email protected]>
Copy file name to clipboardExpand all lines: AmplifyPlugins/Auth/Tests/AWSCognitoAuthPluginUnitTests/TaskTests/ClientBehaviorTests/SignIn/AWSAuthAutoSignInTests.swift
+35Lines changed: 35 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -59,6 +59,41 @@ class AWSAuthAutoSignInTests: BasePluginTest {
59
59
}
60
60
}
61
61
62
+
/// Test auto sign in success
63
+
///
64
+
/// - Given: Given an auth plugin with mocked service set up to return `.selectChallenge` with `.password` and `.passwordSrp`
65
+
/// for `InitiateAuth` and in signed up state
66
+
/// - When:
67
+
/// - I invoke autoSignIn
68
+
/// - Then:
69
+
/// - I should get a result with `.continueSignInWithFirstFactorSelection`
Copy file name to clipboardExpand all lines: AmplifyPlugins/Auth/Tests/AuthHostApp/AuthIntegrationTests/CredentialStore/CredentialStoreConfigurationTests.swift
+19-19Lines changed: 19 additions & 19 deletions
Original file line number
Diff line number
Diff line change
@@ -591,40 +591,40 @@ class CredentialStoreConfigurationTests: AWSAuthBaseTest {
0 commit comments