Skip to content

autoSignIn() only works in a happy path - continuation #4090

@marapz

Description

@marapz

Describe the bug

This is continuation of this issue: #4082
I have updated Amplify SDK to 2.51.4. My configuration didn't change.
Currently, for the following steps:

  1. signUp
  2. confirmSignUp with wrong code
  3. confirmSignUp with correct code
  4. autoSignIn

I get a result
AuthSignInResult(nextStep: Amplify.AuthSignInStep.continueSignInWithFirstFactorSelection(Set([Amplify.AuthFactorType.passwordSRP, Amplify.AuthFactorType.password])))

but expected behavior is to auto login the user instead of having necessity to login with password again. When I try to retrieve a session token, it's impossible.

Steps To Reproduce

Currently, for the following steps:
1. signUp
2. confirmSignUp with wrong code
3. confirmSignUp with correct code
4. autoSignIn

I get a result
`AuthSignInResult(nextStep: Amplify.AuthSignInStep.continueSignInWithFirstFactorSelection(Set([Amplify.AuthFactorType.passwordSRP, Amplify.AuthFactorType.password])))`

Expected behavior

Expected behavior is to auto login the user instead of having necessity to login with password again. When I try to retrieve a session token, it's impossible.

Amplify Framework Version

2.51.4

Amplify Categories

Auth

Dependency manager

Swift PM

Swift version

6

CLI version

.

Xcode version

26.0

Relevant log output

Verbose logs:


AWSCognitoAuthPlugin/ConfirmSignUp.swift Sending event SignUpEvent(id: "1D5ED87F-FB18-4668-A183-09717E3B1394", time: nil, eventType: AWSCognitoAuthPlugin.SignUpEvent.EventType.throwAuthError(AWSCognitoAuthPlugin.SignUpError.service(error: AWSCognitoIdentityProvider.CodeMismatchException(properties: AWSCognitoIdentityProvider.CodeMismatchException.Properties(message: Optional("Invalid verification code provided, please try again.")), httpResponse: 
Status Code: HTTP status code: 400 
 Content-Type: application/x-amz-json-1.1, 
x-amzn-requestid: 72975c22-8681-44bd-a19c-a3396633df47, 
Date: Fri, 31 Oct 2025 11:08:20 GMT, 
x-amzn-errormessage: Invalid verification code provided, please try again., 
x-amzn-errortype: CodeMismatchException:, 
Content-Length: 100, message: nil, requestID: nil))))
Auth state change:

{
    "AuthState.configured" =     {
        "AuthenticationState.signedOut" =         {
            lastKnownUserName = "(nil)";
        };
        "AuthorizationState.error" =         {
            Error = "AWSCognitoAuthPlugin.AuthorizationError.sessionError(AWSCognitoAuthPlugin.FetchSessionError.noIdentityPool, noCredentials)";
        };
        "SignUpState.error" =         {
            Error = "AWSCognitoAuthPlugin.SignUpError.service(error: AWSCognitoIdentityProvider.CodeMismatchException(properties: AWSCognitoIdentityProvider.CodeMismatchException.Properties(message: Optional(\"Invalid verification code provided, please try again.\")), httpResponse: \nStatus Code: HTTP status code: 400 \n x-amzn-errortype: CodeMismatchException:, \nx-amzn-requestid: 72975c22-8681-44bd-a19c-a3396633df47, \nx-amzn-errormessage: Invalid verification code provided, please try again., \nContent-Length: 100, \nContent-Type: application/x-amz-json-1.1, \nDate: Fri, 31 Oct 2025 11:08:20 GMT, message: nil, requestID: nil))";
        };
    };
}
Failed execution for Auth.confirmSignUpAPI with error:
AuthError: Invalid verification code provided, please try again.
Recovery suggestion: Retry with a valid code
Caused by:
codeMismatch
-[RTIInputSystemClient remoteTextInputSessionWithID:performInputOperation:]  perform input operation requires a valid sessionID. inputModality = Keyboard, inputOperation = <null selector>, customInfoType = UIEmojiSearchOperations
Starting execution for Auth.confirmSignUpAPI
Check if authstate configured
Auth state configured
Validating current state
Confirm sign up
Sending confirmSignUp event
Waiting for confirm signup to complete
Auth state change:

{
    "AuthState.configured" =     {
        "AuthenticationState.signedOut" =         {
            lastKnownUserName = "(nil)";
        };
        "AuthorizationState.error" =         {
            Error = "AWSCognitoAuthPlugin.AuthorizationError.sessionError(AWSCognitoAuthPlugin.FetchSessionError.noIdentityPool, noCredentials)";
        };
        "SignUpState.confirmingSignUp" =         {
            clientMetadata = "";
            session = "";
            username = "ma*********************om";
            validationData = "";
        };
    };
}
Credential Store state change:

{
    "CredentialStoreState.loadingStoredCredentials" =     {
    };
}
AWSCognitoAuthPlugin/LoadCredentialStore.swift Starting execution
AWSCognitoAuthPlugin/LoadCredentialStore.swift Retreiving credential deviceMetadata(username: "[REDACTED]")
[KeychainStore] Initialized keychain with service=com.amplify.awsCognitoAuthPlugin, attributes=KeychainStoreAttributes(itemClass: "genp", service: "com.amplify.awsCognitoAuthPlugin", accessGroup: nil), accessGroup=No access group specified
[KeychainStore] Started retrieving `Data` from the store with key=authConfiguration
[KeychainStore] Successfully retrieved `Data` from the store with key=authConfiguration
[KeychainStore] Started setting `Data` for key=authConfiguration
[KeychainStore] Initialized fetching to decide whether update or add
[KeychainStore] Found existing item, updating
[KeychainStore] Successfully updated `Data` in keychain for key=authConfiguration
[KeychainStore] Started retrieving `Data` from the store with key=amplify.eu-west-2_c3mVldjmA.[REDACTED].deviceMetadata
[KeychainStore] No Keychain item found for key=amplify.eu-west-2_c3mVldjmA.[REDACTED].deviceMetadata
AWSCognitoAuthPlugin/LoadCredentialStore.swift Sending event CredentialStoreEvent.throwError
AWSCognitoAuthPlugin/IdleCredentialStore.swift Starting execution
AWSCognitoAuthPlugin/IdleCredentialStore.swift Sending event CredentialStoreEvent.moveToIdleState
Credential Store state change:

{
    "CredentialStoreState.error" =     {
        errorType = "KeychainStoreError: Unable to find the keychain item";
    };
}
Credential Store state change:

{
    "CredentialStoreState.idle" =     {
    };
}
AWSCognitoAuthPlugin/LoadCredentialStore.swift Starting execution
Credential Store state change:

{
    "CredentialStoreState.loadingStoredCredentials" =     {
    };
}
AWSCognitoAuthPlugin/LoadCredentialStore.swift Retreiving credential asfDeviceId(username: "[REDACTED]")
[KeychainStore] Initialized keychain with service=com.amplify.awsCognitoAuthPlugin, attributes=KeychainStoreAttributes(itemClass: "genp", service: "com.amplify.awsCognitoAuthPlugin", accessGroup: nil), accessGroup=No access group specified
[KeychainStore] Started retrieving `Data` from the store with key=authConfiguration
[KeychainStore] Successfully retrieved `Data` from the store with key=authConfiguration
[KeychainStore] Started setting `Data` for key=authConfiguration
[KeychainStore] Initialized fetching to decide whether update or add
[KeychainStore] Found existing item, updating
[KeychainStore] Successfully updated `Data` in keychain for key=authConfiguration
[KeychainStore] Started retrieving `Data` from the store with key=amplify.eu-west-2_c3mVldjmA.[REDACTED].deviceASF
[KeychainStore] Successfully retrieved `Data` from the store with key=amplify.eu-west-2_c3mVldjmA.[REDACTED].deviceASF
AWSCognitoAuthPlugin/LoadCredentialStore.swift Sending event CredentialStoreEvent.completedOperation
Credential Store state change:

{
    "CredentialStoreState.success" =     {
        savedData = "AWSCognitoAuthPlugin.CredentialStoreData.asfDeviceId(\"D79FA569-F770-4D28-8D16-897D9BD169F4\", \"[REDACTED]\")";
    };
}
AWSCognitoAuthPlugin/IdleCredentialStore.swift Starting execution
AWSCognitoAuthPlugin/IdleCredentialStore.swift Sending event CredentialStoreEvent.moveToIdleState
Credential Store state change:

{
    "CredentialStoreState.idle" =     {
    };
}
AWSCognitoAuthPlugin/ConfirmSignUp.swift ConfirmSignUp response succcess
Confirm sign up received result
Auth state change:

{
    "AuthState.configured" =     {
        "AuthenticationState.signedOut" =         {
            lastKnownUserName = "(nil)";
        };
        "AuthorizationState.error" =         {
            Error = "AWSCognitoAuthPlugin.AuthorizationError.sessionError(AWSCognitoAuthPlugin.FetchSessionError.noIdentityPool, noCredentials)";
        };
        "SignUpState.signedUp" =         {
            clientMetadata = "";
            session = "AY***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************7k";
            username = "ma*********************om";
            validationData = "";
        };
    };
}
Successfully completed execution for Auth.confirmSignUpAPI with result:
AuthSignUpResult(nextStep: Amplify.AuthSignUpStep.completeAutoSignIn("AYABeODsooswzNeHzd-IXk_KdBEAHQABAAdTZXJ2aWNlABBDb2duaXRvVXNlclBvb2xzAAEAB2F3cy1rbXMAS2Fybjphd3M6a21zOmV1LXdlc3QtMjo1MDA3OTI3NjA3NTc6a2V5LzBhNjgxMWMyLThjY2YtNDBkMi04NjU0LTExNzM2Y2YyZmM0NQC4AQIBAHjyvs9_iC8wxPKvU_inYCjMvABj_rP6MSyRCkLthE0c1wGfLpmfG1gn41YY5jAWRq6VAAAAfjB8BgkqhkiG9w0BBwagbzBtAgEAMGgGCSqGSIb3DQEHATAeBglghkgBZQMEAS4wEQQMylF2oURv4tUlh5oLAgEQgDukq-_VeP4Ljx86izQp9XaAHj92WIojKR3wD-bNI4l69reSXXstYXT1ZRpmsWo7KAqGGIGYxhkB4EvEKgIAAAAADAAAEAAAAAAAAAAAAAAAAABVcGskE_UMVAckv1kTm9C9_____wAAAAEAAAAAAAAAAAAAAAEAAAFmCtuPm8OwOAW67XW-L3OKcluh5Rgpd1csJ53u1Uk-yAg5zb_upiNSfMxU1f-ZXxLjJlHVKJ4AKzSFLKp5TwlU7VxdLBQswyXtV-S0Whv1CDuw4FLwdON65NzSye7TYVRWjQiaUDrQJco3gFk_2ZzLaVC_S3J7FPtTT5zYinqXEsWrru8wAT2sGC6Q3LXzOsfrmCfg268TyW0nJaH7-R3NvrsZFz44iN-UY8ZlhncRtlkToxkoLdyFmNXhg76BtUozMjNWLsmEb-j4EM-_MuciSlPpFAFa9odv81e6labpOxgdEAA0H8m9C9v0LAWmyfe6ThL6Ct_BpjZyceKc6aSBkW2TgjRWiR-HQiFv7gXPotcDhslHX4jb9F2X0uihdl_9eOfW9lplhKGI-RnAFdbHd3qr8LOE4pQt515Ql6w_xsazR15nnBwP4QtJoe3S6ckxSMoJ51xI2EYHZ_nz7Qym0-FT2mTA1vUNPBRdVq3FUU96Jd_YF7k"), userID: nil)
Starting execution for Auth.autoSignInAPI
Check if authstate configured
Auth state configured
Validating current state
Auto signing in
Sending autoSignIn event
Waiting for autoSignIn to complete
AWSCognitoAuthPlugin/IntializeSignInFlow.swift Starting execution
Auth state change:

{
    "AuthState.configured" =     {
        "AuthenticationState.signingIn" =         {
            "SignInState.notStarted" =             {
            };
        };
        "AuthorizationState.configured" =         {
        };
        "SignUpState.signedUp" =         {
            clientMetadata = "";
            session = "AY***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************7k";
            username = "ma*********************om";
            validationData = "";
        };
    };
}
Credential Store state change:

{
    "CredentialStoreState.loadingStoredCredentials" =     {
    };
}
AWSCognitoAuthPlugin/LoadCredentialStore.swift Starting execution
AWSCognitoAuthPlugin/LoadCredentialStore.swift Retreiving credential deviceMetadata(username: "[REDACTED]")
[KeychainStore] Initialized keychain with service=com.amplify.awsCognitoAuthPlugin, attributes=KeychainStoreAttributes(itemClass: "genp", service: "com.amplify.awsCognitoAuthPlugin", accessGroup: nil), accessGroup=No access group specified
[KeychainStore] Started retrieving `Data` from the store with key=authConfiguration
[KeychainStore] Successfully retrieved `Data` from the store with key=authConfiguration
[KeychainStore] Started setting `Data` for key=authConfiguration
[KeychainStore] Initialized fetching to decide whether update or add
[KeychainStore] Found existing item, updating
[KeychainStore] Successfully updated `Data` in keychain for key=authConfiguration
[KeychainStore] Started retrieving `Data` from the store with key=amplify.eu-west-2_c3mVldjmA.[REDACTED].deviceMetadata
[KeychainStore] No Keychain item found for key=amplify.eu-west-2_c3mVldjmA.[REDACTED].deviceMetadata
AWSCognitoAuthPlugin/LoadCredentialStore.swift Sending event CredentialStoreEvent.throwError
AWSCognitoAuthPlugin/IdleCredentialStore.swift Starting execution
AWSCognitoAuthPlugin/IdleCredentialStore.swift Sending event CredentialStoreEvent.moveToIdleState
Credential Store state change:

{
    "CredentialStoreState.error" =     {
        errorType = "KeychainStoreError: Unable to find the keychain item";
    };
}
Credential Store state change:

{
    "CredentialStoreState.idle" =     {
    };
}
Checking next step for: notStarted
No existing device metadata found. AuthEnvironment(configuration: AWSCognitoAuthPlugin.AuthConfiguration.userPools(["verificationMechanisms": "[]", "passwordProtectionSettings": "nil", "poolId": "eu-w****djmA", "region": "<REDACTED>", "clientId": "65dr****ur1j", "endpoint": "N/A", "hostedUI": "[\"clientId\": \"65dr****ur1j\", \"clientSecret\": \"1rph****pkqs\", \"oauth\": \"[\\\"domain\\\": \\\"eu-w****.com\\\", \\\"signOutRedirectURI\\\": \\\"*******\\\", \\\"signInRedirectURI\\\": \\\"*******\\\"]\"]", "pinpointAppId": "(nil)", "usernameAttributes": "[]", "signUpAttributes": "[]", "clientSecret": "1r****qs"]), userPoolConfigData: Optional(["verificationMechanisms": "[]", "passwordProtectionSettings": "nil", "poolId": "eu-w****djmA", "region": "<REDACTED>", "clientId": "65dr****ur1j", "endpoint": "N/A", "hostedUI": "[\"clientId\": \"65dr****ur1j\", \"clientSecret\": \"1rph****pkqs\", \"oauth\": \"[\\\"domain\\\": \\\"eu-w****.com\\\", \\\"signOutRedirectURI\\\": \\\"*******\\\", \\\"signInRedirectURI\\\": \\\"*******\\\"]\"]", "pinpointAppId": "(nil)", "usernameAttributes": "[]", "signUpAttributes": "[]", "clientSecret": "1r****qs"]), identityPoolConfigData: nil, authenticationEnvironment: Optional(AWSCognitoAuthPlugin.BasicAuthenticationEnvironment(srpSignInEnvironment: AWSCognitoAuthPlugin.BasicSRPSignInEnvironment(srpAuthEnvironment: AWSCognitoAuthPlugin.BasicSRPAuthEnvironment(userPoolConfiguration: ["verificationMechanisms": "[]", "passwordProtectionSettings": "nil", "poolId": "eu-w****djmA", "region": "<REDACTED>", "clientId": "65dr****ur1j", "endpoint": "N/A", "hostedUI": "[\"clientId\": \"65dr****ur1j\", \"clientSecret\": \"1rph****pkqs\", \"oauth\": \"[\\\"domain\\\": \\\"eu-w****.com\\\", \\\"signOutRedirectURI\\\": \\\"*******\\\", \\\"signInRedirectURI\\\": \\\"*******\\\"]\"]", "pinpointAppId": "(nil)", "usernameAttributes": "[]", "signUpAttributes": "[]", "clientSecret": "1r****qs"], cognitoUserPoolFactory: (Function), eventIDFactory: (Function), srpClientFactory: (Function), srpConfiguration: (nHexValue: "FFFFFFFFFFFFFFFFC90FDAA22168C234C4C6628B80DC1CD129024E088A67CC74020BBEA63B139B22514A08798E3404DDEF9519B3CD3A431B302B0A6DF25F14374FE1356D6D51C245E485B576625E7EC6F44C42E9A637ED6B0BFF5CB6F406B7EDEE386BFB5A899FA5AE9F24117C4B1FE649286651ECE45B3DC2007CB8A163BF0598DA48361C55D39A69163FA8FD24CF5F83655D23DCA3AD961C62F356208552BB9ED529077096966D670C354E4ABC9804F1746C08CA18217C32905E462E36CE3BE39E772C180E86039B2783A2EC07A28FB5C55DF06F4C52C9DE2BCBF6955817183995497CEA956AE515D2261898FA051015728E5A8AAAC42DAD33170D04507A33A85521ABDF1CBA64ECFB850458DBEF0A8AEA71575D060C7DB3970F85A6E1E4C7ABF5AE8CDB0933D71E8C94E04A25619DCEE3D2261AD2EE6BF12FFA06D98A0864D87602733EC86A64521F2B18177B200CBBE117577A615D6C770988C0BAD946E208E24FA074E5AB3143DB5BFCE0FD108E4B82D120A93AD2CAFFFFFFFFFFFFFFFF", gHexValue: "2"))), userPoolEnvironment: AWSCognitoAuthPlugin.BasicUserPoolEnvironment(userPoolConfiguration: ["verificationMechanisms": "[]", "passwordProtectionSettings": "nil", "poolId": "eu-w****djmA", "region": "<REDACTED>", "clientId": "65dr****ur1j", "endpoint": "N/A", "hostedUI": "[\"clientId\": \"65dr****ur1j\", \"clientSecret\": \"1rph****pkqs\", \"oauth\": \"[\\\"domain\\\": \\\"eu-w****.com\\\", \\\"signOutRedirectURI\\\": \\\"*******\\\", \\\"signInRedirectURI\\\": \\\"*******\\\"]\"]", "pinpointAppId": "(nil)", "usernameAttributes": "[]", "signUpAttributes": "[]", "clientSecret": "1r****qs"], cognitoUserPoolFactory: (Function), cognitoUserPoolASFFactory: (Function), cognitoUserPoolAnalyticsHandlerFactory: (Function)), hostedUIEnvironment: Optional(AWSCognitoAuthPlugin.BasicHostedUIEnvironment(configuration: ["clientId": "65dr****ur1j", "clientSecret": "1rph****pkqs", "oauth": "[\"domain\": \"eu-w****.com\", \"signOutRedirectURI\": \"*******\", \"signInRedirectURI\": \"*******\"]"], hostedUISessionFactory: (Function), urlSessionFactory: (Function), randomStringFactory: (Function))))), authorizationEnvironment: nil, credentialsClient: AWSCognitoAuthPlugin.CredentialStoreOperationClient, logger: Amplify.BroadcastLogger)
AWSCognitoAuthPlugin/IntializeSignInFlow.swift Sending event SignInEvent.initiateAutoSignIn
AWSCognitoAuthPlugin/LoadCredentialStore.swift Starting execution
Credential Store state change:

{
    "CredentialStoreState.loadingStoredCredentials" =     {
    };
}
AWSCognitoAuthPlugin/LoadCredentialStore.swift Retreiving credential deviceMetadata(username: "[REDACTED]")
[KeychainStore] Initialized keychain with service=com.amplify.awsCognitoAuthPlugin, attributes=KeychainStoreAttributes(itemClass: "genp", service: "com.amplify.awsCognitoAuthPlugin", accessGroup: nil), accessGroup=No access group specified
[KeychainStore] Started retrieving `Data` from the store with key=authConfiguration
[KeychainStore] Successfully retrieved `Data` from the store with key=authConfiguration
[KeychainStore] Started setting `Data` for key=authConfiguration
[KeychainStore] Initialized fetching to decide whether update or add
[KeychainStore] Found existing item, updating
[KeychainStore] Successfully updated `Data` in keychain for key=authConfiguration
[KeychainStore] Started retrieving `Data` from the store with key=amplify.eu-west-2_c3mVldjmA.[REDACTED].deviceMetadata
[KeychainStore] No Keychain item found for key=amplify.eu-west-2_c3mVldjmA.[REDACTED].deviceMetadata
AWSCognitoAuthPlugin/LoadCredentialStore.swift Sending event CredentialStoreEvent.throwError
AWSCognitoAuthPlugin/IdleCredentialStore.swift Starting execution
AWSCognitoAuthPlugin/IdleCredentialStore.swift Sending event CredentialStoreEvent.moveToIdleState
Credential Store state change:

{
    "CredentialStoreState.error" =     {
        errorType = "KeychainStoreError: Unable to find the keychain item";
    };
}
Credential Store state change:

{
    "CredentialStoreState.idle" =     {
    };
}
AWSCognitoAuthPlugin/LoadCredentialStore.swift Starting execution
Credential Store state change:

{
    "CredentialStoreState.loadingStoredCredentials" =     {
    };
}
AWSCognitoAuthPlugin/LoadCredentialStore.swift Retreiving credential asfDeviceId(username: "[REDACTED]")
[KeychainStore] Initialized keychain with service=com.amplify.awsCognitoAuthPlugin, attributes=KeychainStoreAttributes(itemClass: "genp", service: "com.amplify.awsCognitoAuthPlugin", accessGroup: nil), accessGroup=No access group specified
[KeychainStore] Started retrieving `Data` from the store with key=authConfiguration
[KeychainStore] Successfully retrieved `Data` from the store with key=authConfiguration
[KeychainStore] Started setting `Data` for key=authConfiguration
[KeychainStore] Initialized fetching to decide whether update or add
[KeychainStore] Found existing item, updating
Auth state change:

{
    "AuthState.configured" =     {
        "AuthenticationState.signingIn" =         {
            "SignInState.autoSigningIn" =             {
                SignInData =                 {
                    clientMetadata =                     {
                    };
                    password = "(nil)";
                    session = "<REDACTED>";
                    signInMethod = "AWSCognitoAuthPlugin.SignInMethod.apiBased(AWSCognitoAuthPlugin.AuthFlowType.userAuth(preferredFirstFactor: nil))";
                    username = "ma*********************om";
                };
            };
        };
        "AuthorizationState.configured" =         {
        };
        "SignUpState.signedUp" =         {
            clientMetadata = "";
            session = "AY***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************7k";
            username = "ma*********************om";
            validationData = "";
        };
    };
}
Checking next step for: autoSigningIn(["clientMetadata": [:], "signInMethod": AWSCognitoAuthPlugin.SignInMethod.apiBased(AWSCognitoAuthPlugin.AuthFlowType.userAuth(preferredFirstFactor: nil)), "username": "ma*********************om", "password": "(nil)", "session": "<REDACTED>"])
[KeychainStore] Successfully updated `Data` in keychain for key=authConfiguration
[KeychainStore] Started retrieving `Data` from the store with key=amplify.eu-west-2_c3mVldjmA.[REDACTED].deviceASF
[KeychainStore] Successfully retrieved `Data` from the store with key=amplify.eu-west-2_c3mVldjmA.[REDACTED].deviceASF
AWSCognitoAuthPlugin/LoadCredentialStore.swift Sending event CredentialStoreEvent.completedOperation
AWSCognitoAuthPlugin/IdleCredentialStore.swift Starting execution
AWSCognitoAuthPlugin/IdleCredentialStore.swift Sending event CredentialStoreEvent.moveToIdleState
Credential Store state change:

{
    "CredentialStoreState.success" =     {
        savedData = "AWSCognitoAuthPlugin.CredentialStoreData.asfDeviceId(\"D79FA569-F770-4D28-8D16-897D9BD169F4\", \"[REDACTED]\")";
    };
}
Credential Store state change:

{
    "CredentialStoreState.idle" =     {
    };
}
AWSCognitoAuthPlugin/AutoSignIn.swift Starting execution
AWSCognitoAuthPlugin/AutoSignIn.swift Sending event SignInEvent(data: nil, id: "9B9FCD1F-76CF-4834-A84D-E40528E3E857", eventType: AWSCognitoAuthPlugin.SignInEvent.EventType.receivedChallenge(AWSCognitoAuthPlugin.RespondToAuthChallenge(challenge: AWSCognitoIdentityProvider.CognitoIdentityProviderClientTypes.ChallengeNameType.selectChallenge, availableChallenges: [AWSCognitoIdentityProvider.CognitoIdentityProviderClientTypes.ChallengeNameType.passwordSrp, AWSCognitoIdentityProvider.CognitoIdentityProviderClientTypes.ChallengeNameType.password], username: "[REDACTED]", session: Optional("AYABeNDSJYPyS7KgMT5x1G46odUAHQABAAdTZXJ2aWNlABBDb2duaXRvVXNlclBvb2xzAAEAB2F3cy1rbXMAS2Fybjphd3M6a21zOmV1LXdlc3QtMjo1MDA3OTI3NjA3NTc6a2V5LzBhNjgxMWMyLThjY2YtNDBkMi04NjU0LTExNzM2Y2YyZmM0NQC4AQIBAHjyvs9_iC8wxPKvU_inYCjMvABj_rP6MSyRCkLthE0c1wFMlmR0jfUagatD9cuonhkGAAAAfjB8BgkqhkiG9w0BBwagbzBtAgEAMGgGCSqGSIb3DQEHATAeBglghkgBZQMEAS4wEQQMIjVMkmxZKPiLnHasAgEQgDuWUhfPFUsB_BlYZLY840nIy8UuiWgHpfjwc8DuXN3BY0CkJDmoaTGLRbt1QSzGxWP1o0ZwtC7Cur8ucwIAAAAADAAAEAAAAAAAAAAAAAAAAAAYM4vg6CWrjq5SDqh7odlp_____wAAAAEAAAAAAAAAAAAAAAEAAAEG24OfpHzkJcBdNKcYIYse-o5X0oI-m3M1yGMzPlHaVII9psj05IjiOZnFjEZg3fXKhQZxiN59ezyF-H0WRukQsbN4bJaKmB7o3TVuDIkqyDQhlvfhcrG2LeoEimY1dyTlZ1vIYsU70F85-BW27IigxT_QwjcwKGsGr5ATYiimHVqa_bctoy-9mLYgsnXgvQjevctdc1SZPqrBUxOcBLyKCS5WUSxZc5-RNHqWOjBZJgo6vs8qNfP96AleK8N11LNYDHIqwyD53e8K1Dh9QcA4-oIefzTptsr5ZUaus5SB0_8aOQvbPifLFOmtwzBIrfjYVtbcf5NzW0AQJp1WmNWiLhKgYDFv5WKfWpmGgXHapDPxATzZ_2M"), parameters: Optional([:]))), time: nil)
AWSCognitoAuthPlugin/InitializeResolveChallenge.swift Starting execution
AWSCognitoAuthPlugin/InitializeResolveChallenge.swift Sending event SignInChallengeEvent.waitForAnswer
Auth state change:

{
    "AuthState.configured" =     {
        "AuthenticationState.signingIn" =         {
            "SignInState.resolvingChallenge" =             {
                "SignInChallengeState.notStarted" =                 {
                };
                challengeType = "AWSCognitoAuthPlugin.AuthChallengeType.selectAuthFactor";
                signInMethod = "AWSCognitoAuthPlugin.SignInMethod.apiBased(AWSCognitoAuthPlugin.AuthFlowType.userAuth(preferredFirstFactor: nil))";
            };
        };
        "AuthorizationState.configured" =         {
        };
        "SignUpState.signedUp" =         {
            clientMetadata = "";
            session = "AY***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************7k";
            username = "ma*********************om";
            validationData = "";
        };
    };
}
Checking next step for: resolvingChallenge(AWSCognitoAuthPlugin.SignInChallengeState.notStarted, AWSCognitoAuthPlugin.AuthChallengeType.selectAuthFactor, AWSCognitoAuthPlugin.SignInMethod.apiBased(AWSCognitoAuthPlugin.AuthFlowType.userAuth(preferredFirstFactor: nil)))
Auth state change:

{
    "AuthState.configured" =     {
        "AuthenticationState.signingIn" =         {
            "SignInState.resolvingChallenge" =             {
                "SignInChallengeState.waitingForAnswer" =                 {
                    challenge = "AWSCognitoIdentityProvider.CognitoIdentityProviderClientTypes.ChallengeNameType.selectChallenge";
                    username = "ma*********************om";
                };
                challengeType = "AWSCognitoAuthPlugin.AuthChallengeType.selectAuthFactor";
                signInMethod = "AWSCognitoAuthPlugin.SignInMethod.apiBased(AWSCognitoAuthPlugin.AuthFlowType.userAuth(preferredFirstFactor: nil))";
            };
        };
        "AuthorizationState.configured" =         {
        };
        "SignUpState.signedUp" =         {
            clientMetadata = "";
            session = "AY***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************7k";
            username = "ma*********************om";
            validationData = "";
        };
    };
}
Checking next step for: resolvingChallenge(AWSCognitoAuthPlugin.SignInChallengeState.waitingForAnswer(AWSCognitoAuthPlugin.RespondToAuthChallenge(challenge: AWSCognitoIdentityProvider.CognitoIdentityProviderClientTypes.ChallengeNameType.selectChallenge, availableChallenges: [AWSCognitoIdentityProvider.CognitoIdentityProviderClientTypes.ChallengeNameType.passwordSrp, AWSCognitoIdentityProvider.CognitoIdentityProviderClientTypes.ChallengeNameType.password], username: "[REDACTED]", session: Optional("AYABeNDSJYPyS7KgMT5x1G46odUAHQABAAdTZXJ2aWNlABBDb2duaXRvVXNlclBvb2xzAAEAB2F3cy1rbXMAS2Fybjphd3M6a21zOmV1LXdlc3QtMjo1MDA3OTI3NjA3NTc6a2V5LzBhNjgxMWMyLThjY2YtNDBkMi04NjU0LTExNzM2Y2YyZmM0NQC4AQIBAHjyvs9_iC8wxPKvU_inYCjMvABj_rP6MSyRCkLthE0c1wFMlmR0jfUagatD9cuonhkGAAAAfjB8BgkqhkiG9w0BBwagbzBtAgEAMGgGCSqGSIb3DQEHATAeBglghkgBZQMEAS4wEQQMIjVMkmxZKPiLnHasAgEQgDuWUhfPFUsB_BlYZLY840nIy8UuiWgHpfjwc8DuXN3BY0CkJDmoaTGLRbt1QSzGxWP1o0ZwtC7Cur8ucwIAAAAADAAAEAAAAAAAAAAAAAAAAAAYM4vg6CWrjq5SDqh7odlp_____wAAAAEAAAAAAAAAAAAAAAEAAAEG24OfpHzkJcBdNKcYIYse-o5X0oI-m3M1yGMzPlHaVII9psj05IjiOZnFjEZg3fXKhQZxiN59ezyF-H0WRukQsbN4bJaKmB7o3TVuDIkqyDQhlvfhcrG2LeoEimY1dyTlZ1vIYsU70F85-BW27IigxT_QwjcwKGsGr5ATYiimHVqa_bctoy-9mLYgsnXgvQjevctdc1SZPqrBUxOcBLyKCS5WUSxZc5-RNHqWOjBZJgo6vs8qNfP96AleK8N11LNYDHIqwyD53e8K1Dh9QcA4-oIefzTptsr5ZUaus5SB0_8aOQvbPifLFOmtwzBIrfjYVtbcf5NzW0AQJp1WmNWiLhKgYDFv5WKfWpmGgXHapDPxATzZ_2M"), parameters: Optional([:])), AWSCognitoAuthPlugin.SignInMethod.apiBased(AWSCognitoAuthPlugin.AuthFlowType.userAuth(preferredFirstFactor: nil)), Amplify.AuthSignInStep.continueSignInWithFirstFactorSelection(Set([Amplify.AuthFactorType.passwordSRP, Amplify.AuthFactorType.password]))), AWSCognitoAuthPlugin.AuthChallengeType.selectAuthFactor, AWSCognitoAuthPlugin.SignInMethod.apiBased(AWSCognitoAuthPlugin.AuthFlowType.userAuth(preferredFirstFactor: nil)))
Received result
Successfully completed execution for Auth.autoSignInAPI with result:
AuthSignInResult(nextStep: Amplify.AuthSignInStep.continueSignInWithFirstFactorSelection(Set([Amplify.AuthFactorType.passwordSRP, Amplify.AuthFactorType.password])))

Is this a regression?

Yes

Regression additional context

No response

Platforms

iOS

OS Version

26

Device

iPhone 15 Pro

Specific to simulators

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    authIssues related to the Auth categorybugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions