comAtprotoServerUpdateEmail function
Update an account's email.
Implementation
Future<XRPCResponse<EmptyData>> comAtprotoServerUpdateEmail({
required String email,
bool? emailAuthFactor,
String? token,
required ServiceContext $ctx,
Map<String, String>? $headers,
Map<String, String>? $unknown,
}) async => await $ctx.post(
ns.comAtprotoServerUpdateEmail,
headers: {'Content-type': 'application/json', ...?$headers},
body: {
...?$unknown,
'email': email,
if (emailAuthFactor != null) 'emailAuthFactor': emailAuthFactor,
if (token != null) 'token': token,
},
);