forgotPassword method

Future<void> forgotPassword(
  1. String email
)

Sends a password reset email

Implementation

Future<void> forgotPassword(String email) async {
  final response = await _client.post(
    Uri.parse('$baseUrl/auth/forgot-password'),
    headers: {'Content-Type': 'application/json'},
    body: jsonEncode({'email': email}),
  );

  _handleResponse(response);
}