requestPasswordReset method
When the user is logged in via email and password, requesting a password reset will send them an email with a link to reset their password.
Implementation
Future<void> requestPasswordReset(String email) async {
String url = '$authEndpoint/user/resetpassword';
Map body = {"email": email};
try {
await dio.post(url, data: body);
} catch (e) {
if (e is DioException) throw (e.response.toString());
}
}