requestPhoneVerification method

Future<XRPCResponse<EmptyData>> requestPhoneVerification({
  1. required String phoneNumber,
  2. Map<String, String>? $unknown,
  3. Map<String, String>? $headers,
  4. PostClient? $client,
})

Request a verification code to be sent to the supplied phone number

https://atprotodart.com/docs/lexicons/com/atproto/temp/requestPhoneVerification

Implementation

Future<XRPCResponse<EmptyData>> requestPhoneVerification({
  required String phoneNumber,
  Map<String, String>? $unknown,
  Map<String, String>? $headers,
  PostClient? $client,
}) async =>
    await _ctx.post<EmptyData>(
      ns.comAtprotoTempRequestPhoneVerification,
      headers: $headers,
      body: {
        'phoneNumber': phoneNumber,
        ...?$unknown,
      },
      client: $client,
    );