appBskyContactStartPhoneVerification function

Future<XRPCResponse<EmptyData>> appBskyContactStartPhoneVerification({
  1. required String phone,
  2. required ServiceContext $ctx,
  3. String? $service,
  4. Map<String, String>? $headers,
  5. Map<String, String>? $unknown,
})

Starts a phone verification flow. The phone passed will receive a code via SMS that should be passed to app.bsky.contact.verifyPhone. Requires authentication.

Implementation

Future<XRPCResponse<EmptyData>> appBskyContactStartPhoneVerification({
  required String phone,
  required ServiceContext $ctx,
  String? $service,
  Map<String, String>? $headers,
  Map<String, String>? $unknown,
}) async => await $ctx.post(
  ns.appBskyContactStartPhoneVerification,
  service: $service,
  headers: {'Content-type': 'application/json', ...?$headers},
  body: {...?$unknown, 'phone': phone},
);