We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fbab362 commit 2ba44acCopy full SHA for 2ba44ac
authenticator/src/main/java/com/amplifyframework/ui/authenticator/AuthenticatorViewModel.kt
@@ -229,6 +229,15 @@ internal class AuthenticatorViewModel(
229
moveTo(newState)
230
}
231
AuthSignUpStep.DONE -> handleSignedUp(username, password)
232
+ else -> {
233
+ // Generic error for any other next steps that may be added in the future
234
+ val exception = AuthException(
235
+ "Unsupported next step ${result.nextStep.signUpStep}.",
236
+ "Authenticator does not support this Authentication flow, disable it to use Authenticator."
237
+ )
238
+ logger.error("Unsupported next step ${result.nextStep.signUpStep}", exception)
239
+ sendMessage(UnknownErrorMessage(exception))
240
+ }
241
242
243
0 commit comments