confirmSignUp method

  1. @override
Future<SignUpResult> confirmSignUp({
  1. required ConfirmSignUpRequest request,
})

Implementation

@override
Future<SignUpResult> confirmSignUp(
    {required ConfirmSignUpRequest request}) async {
  try {
    final Map<String, dynamic>? data =
        (await (_channel.invokeMapMethod<String, dynamic>(
      'confirmSignUp',
      <String, dynamic>{
        'data': request.serializeAsMap(),
      },
    )));
    if (data == null)
      throw AmplifyException(
          AmplifyExceptionMessages.nullReturnedFromMethodChannel);
    return _formatSignUpResponse(data, "confirmSignUp");
  } on PlatformException catch (e) {
    throw castAndReturnPlatformException(e);
  }
}