storage.from.list(); returns empty

export async function getProspectFileList(): Promise<any> {
  const { data, error } = await supabaseClient.storage
    .from('prospects')
    .list();
  if (error) return error.message;
  console.log("got the data", data);
  return data;
}
this returns an empty array. but I see files in the prospects bucket. any ideas?
unknown.png
Was this page helpful?