1 Answer
- Newest
- Most votes
- Most comments
1
Hi,
You shouldn't add CHALLENGE_NAME
in your payload and you should use the API cognitoUser.authenticateUser
instead of InitiateAuth
(since you are using SRP-based authentication then adding a custom challenge).
Here is a some what similar example that uses the same SDK that you are tying to use to implement custom auth flow. If you would like to use Amplify instead of the cognito-identity-sdk then here is a blog post that implements something similar.
Relevant content
- asked 6 months ago
- asked 2 years ago
- AWS OFFICIALUpdated 3 months ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 2 years ago
Hey Mahmoud, Thanks for the reply! Followed the similar example you sent me and it has worked
Hi Mahmoud, I'm trying to do something similar, but instead of getting the user input from a prompt in the customchallenge callback, I would like to get it from a textbox within the authentication flow itself, similar to this: https://stackoverflow.com/questions/46472827/reactjs-aws-cognito-getting-user-input-mid-execution.
Do you know if this is possible via the SDK? Thanks!