CustomRegistrationCallback
As described in Registration with Custom IdP, a user will need to respond to the SDK during the custom registration flow. The SDK provides the following two callbacks for this flow:
submitSuccessAction
In case the user wants to respond with a success based on the custom registration event it can use this function.
Future<void> submitSuccessAction(String? data)
submitErrorAction
You can cancel the current custom registration flow by calling this function. The original registerUser
call will then throw a Platform Exception containing the given reason.
Future<void> submitErrorAction(String error)