amplify-swift
amplify-swift copied to clipboard
Change auth flow on the fly
Is your feature request related to a problem? Please describe. Migration triggers require USER_PASSWORD_AUTH to work, but this flow is not as secure as other flows. Amplify does not allow switching authentication flow without a new build of our app. We'd like to use USER_SRP_AUTH for security, but the Cognito migration trigger doesn't get hit with this flow type. We are forced to make our auth flow less secure because of this restriction.
Describe the solution you'd like Allow amplify to switch auth flow on the fly. This way the app can attempt to auth with USER_SRP_AUTH and, if that fails, then attempt USER_PASSWORD_AUTH.
Describe alternatives you've considered Not using Amplify because this is not the only restriction we have found since switching to Amplify.
Currently, Amplify does not support the Cognito migration flow. We'll leave this issue open as a feature request for that.
This issue is stale because it has been open for 14 days with no activity. Please, provide an update or it will be automatically closed in 7 days.
Released in v2.0.0