comAtprotoServerConfirmEmail function

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

Confirm an email using a token from com.atproto.server.requestEmailConfirmation.

Implementation

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