1 réponse
- Le plus récent
- Le plus de votes
- La plupart des commentaires
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.
Contenus pertinents
- demandé il y a un mois
- AWS OFFICIELA mis à jour il y a 2 ans
- AWS OFFICIELA mis à jour il y a un an
- AWS OFFICIELA mis à jour il y a 3 ans
- AWS OFFICIELA mis à jour il y a 2 ans
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!