Flutter: Create a signed URL

Create signed url to download file without requiring permissions. This URL can be valid for a set number of seconds.

Examples

Create Signed URL

final String signedUrl = await supabase
  .storage
  .from('avatars')
  .createSignedUrl('avatar1.png', 60);

With transform

final String signedUrl = await supabase
  .storage
  .from('avatars')
  .createSignedUrl(
    'avatar1.png',
    60,
    transform: TransformOptions(
      width: 200,
      height: 200,
    ),
  );