updateUserById method

Future<UserResponse> updateUserById(
  1. String uid, {
  2. required AdminUserAttributes attributes,
})

Updates the user data.

Implementation

Future<UserResponse> updateUserById(
  String uid, {
  required AdminUserAttributes attributes,
}) async {
  final body = attributes.toJson();
  final options = GotrueRequestOptions(headers: _headers, body: body);
  final response = await _fetch.request(
    '$_url/admin/users/$uid',
    RequestMethodType.put,
    options: options,
  );
  return UserResponse.fromJson(response);
}