createMD5User method
Create user with MD5 password
Create a new user. Password provided must be hashed with the MD5 algorithm. Use the POST /users endpoint to create users with a plain text password.
Implementation
Future<models.User> createMD5User(
{required String userId,
required String email,
required String password,
String? name}) async {
final String apiPath = '/users/md5';
final Map<String, dynamic> apiParams = {
'userId': userId,
'email': email,
'password': password,
'name': name,
};
final Map<String, String> apiHeaders = {
'content-type': 'application/json',
};
final res = await client.call(HttpMethod.post,
path: apiPath, params: apiParams, headers: apiHeaders);
return models.User.fromMap(res.data);
}