resetPassword method

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

Reset a user account password using a token.

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

Implementation

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