comAtprotoServerResetPassword function

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

Reset a user account password using a token.

Implementation

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