createUser method
Creates a new user.
This function should only be called on a server. Never expose your service_role
key on the client.
Requires either an email or phone
Implementation
Future<UserResponse> createUser(AdminUserAttributes attributes) async {
final options = GotrueRequestOptions(
headers: _headers,
body: attributes.toJson(),
);
final response = await _fetch.request(
'$_url/admin/users',
RequestMethodType.post,
options: options,
);
return UserResponse.fromJson(response);
}