I'm trying authenticate user with the code below.
When I send a request for the first time, it raises the "CognitoUserException: User Confirmation Necessary" error even though the user is confirmed.
When I send an authenticate request for the second time without doing anything else, it accepts the user. So basically if I run the code twice, everything is fine but in the first time it raises an exception.
And another interesting part is that I'm testing the app using two different Amazon accounts, and in one account with the same cognito settings there is no problem. I can directly authenticate the user, but in another account there is the problem thar I mentioned.
I'm trying authenticate user with the code below. When I send a request for the first time, it raises the "CognitoUserException: User Confirmation Necessary" error even though the user is confirmed. When I send an authenticate request for the second time without doing anything else, it accepts the user. So basically if I run the code twice, everything is fine but in the first time it raises an exception.
Where could this situation come from?
And another interesting part is that I'm testing the app using two different Amazon accounts, and in one account with the same cognito settings there is no problem. I can directly authenticate the user, but in another account there is the problem thar I mentioned.