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
Copy file name to clipboardexpand all lines: AmplifyPlugins/Auth/Sources/AWSCognitoAuthPlugin/Models/AuthFlowType.swift
+15
Original file line number
Diff line number
Diff line change
@@ -34,6 +34,21 @@ public enum AuthFlowType {
34
34
/// - `preferredFirstFactor`: the auth factor type the user should begin signing with if available. If the preferred first factor is not available, the flow would fallback to provide available first factors.
35
35
case userAuth(preferredFirstFactor:AuthFactorType?)
Copy file name to clipboardexpand all lines: AmplifyPlugins/Auth/Tests/AuthHostApp/AuthIntegrationTests/PasswordlessTests/PasswordlessSignInTests.swift
+89
Original file line number
Diff line number
Diff line change
@@ -167,6 +167,95 @@ class PasswordlessSignInTests: AWSAuthBaseTest {
167
167
}
168
168
}
169
169
170
+
/// Test successful signIn of a valid user
171
+
///
172
+
/// - Given: A user registered in Cognito user pool
173
+
/// - When:
174
+
/// - I invoke Amplify.Auth.signIn with the username and password, using userAuth flow
175
+
/// - Retry confirm sign in after a wrong password attempt is not supposed to work in `userAuth` flow. Cognito doesn't support this flow.
176
+
/// - Re-initiation of sign in should work correctly after a incorrect attempt
0 commit comments