sendPhoneCode method

Future<bool> sendPhoneCode({
  1. required String phone,
})

Implementation

Future<bool> sendPhoneCode({required String phone}) async {
  final res = await CloudBaseRequest(core).postWithoutAuth(
    'auth.sendPhoneCode',
    {
      'phoneNumber': "+86$phone",
    },
  );
  return res.data["data"]["SendStatus"] == 'Ok';
}