sendCode method

Future<Either<BaseException, void>> sendCode(
  1. String phone,
  2. String code
)

Implementation

Future<Either<BaseException, void>> sendCode(String phone, String code) {
  return post(
    AuthUrls.sendSmsCode,
    body: {
      'phone': phone,
      'code': code,
    },
    mapper: (json) => {},
  );
}