getUserById method

Future<UserResponse> getUserById(
  1. String uid
)

Gets the user by their id.

Implementation

Future<UserResponse> getUserById(String uid) async {
  final options = GotrueRequestOptions(headers: _headers);
  final response = await _fetch.request(
    '$_url/admin/users/$uid',
    RequestMethodType.get,
    options: options,
  );
  return UserResponse.fromJson(response);
}