confirmEmail method

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

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

https://atprotodart.com/docs/lexicons/com/atproto/server/confirmEmail

Implementation

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