verifyPhone method

Future<Result<void, Exception>> verifyPhone(
  1. String phone
)

Implementation

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

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