1 Risposta
- Più recenti
- Maggior numero di voti
- Maggior numero di commenti
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.
Contenuto pertinente
- AWS UFFICIALEAggiornata un anno fa
- AWS UFFICIALEAggiornata 2 anni fa
- AWS UFFICIALEAggiornata 2 anni fa
- AWS UFFICIALEAggiornata 3 anni fa
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!