Creates a signed URL. Use a signed URL to share a file for a fixed amount of time.
buckets
table permissions: noneobjects
table permissions: select
The file path, including the current file name. For example `folder/image.png`.
The number of seconds until the signed URL expires. For example, `60` for a URL which is valid for one minute.
const \{ data, error \} = await supabase
.storage
.from('avatars')
.createSignedUrl('folder/avatar1.png', 60)
const \{ data \} = await supabase
.storage
.from('avatars')
.createSignedUrl('folder/avatar1.png', 60, \{
transform: \{
width: 100,
height: 100,
\}
\})
const \{ data \} = await supabase
.storage
.from('avatars')
.createSignedUrl('folder/avatar1.png', 60, \{
download: true,
\})