confirmPhone method

Future<Result<void, Exception>> confirmPhone(
  1. String phone,
  2. String code
)

Implementation

Future<Result<void, Exception>> confirmPhone(String phone, String code) async {
  final result = await _flutterAuthApi.confirmPhone(_appName, phone, code);

  if (result.isSuccess != true) {
    return Result.failure(Exception(result.error));
  }
  return Result.success({});
}