简体   繁体   中英

Amazon cognito login failure : SRP error in Android

I am trying to login using Amazon Cognito in Android. The credentials - username and password are valid but i get the below error

com.amazonaws.mobileconnectors.cognitoidentityprovider.exceptions.CognitoInternalErrorException: SRP error

cause = java.lang.ArrayIndexOutOfBoundsException: length=1; index=1

The Amazon Cognito user registration (signup) and verification works cool! but I'm not able to get through the login flow due to the above error.

Any help on this will be a great rescue :) TIA!

I had the same problem as you. In my case it was wrong Pool Id .

Please check Pool Id . You are able to sign up new user if Pool Id is invalid, however you can't do user authentication.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM