The custom authentication flow can be used with standard SRP password verification. The initial challenge is done using SRP and the custom authentication can provide an MFA challenge such as email.
The initial code migration captured this flow with all the appropriate methods in place.
This PR just allows the CUSTOM_AUTH authentication flow to be run via the authenticateUser method.
The custom authentication flow can be used with standard SRP password verification. The initial challenge is done using SRP and the custom authentication can provide an MFA challenge such as email.
More information on this can be found here. https://aws.amazon.com/blogs/mobile/extending-amazon-cognito-with-email-otp-for-2fa-using-amazon-ses/
The initial code migration captured this flow with all the appropriate methods in place. This PR just allows the CUSTOM_AUTH authentication flow to be run via the authenticateUser method.