Kotlin: Create a signed URL
- RLS policy permissions required:
buckets
table permissions: none
objects
table permissions: select
- Refer to the Storage guide on how access control works
Examples
Create Signed URL
val bucket = supabase.storage["avatars"]
val url = bucket.createSignedUrl(path = "icon.png", expiresIn = 3.minutes)
Create Signed URL with transformation
val bucket = supabase.storage["avatars"]
val url = bucket.createSignedUrl(path = "icon.png", expiresIn = 3.minutes) \{
size(100, 100)
fill()
quality = 80
\}