listBuckets()
Retrieves the details of all Storage buckets within an existing project.
1const { data, error } = await supabase 2 .storage 3 .listBuckets()
Notes#
- RLS policy permissions required:
buckets
table permissions:select
objects
table permissions: none
- Refer to the Storage guide on how access control works
Examples#
List buckets#
1const { data, error } = await supabase 2 .storage 3 .listBuckets()