supabase / storage-js

JS Client library to interact with Supabase Storage
Apache License 2.0
126 stars 36 forks source link

`createSignedUrls` response does not match type #169

Open bombillazo opened 1 year ago

bombillazo commented 1 year ago

Bug report

Describe the bug

The response for the createSignedUrls data is not the same as the actual data returned by the function.

To Reproduce

Steps to reproduce the behavior, please provide code snippets or a repository:

Call the createSignedUrls function and compare with the typed data.

Expected behavior

Consistency between response data and type.

Screenshots

Response type:

image

Actual Data:

[
  {
    error: null,
    signedURL: "/object/sign/public/users/05e60ccc-f249-41fa-a358-38d6a9c36e74/file.txt?token=eyJhbGciOiJIUzI1NiIsIn...",
    signedUrl: "http://supabase_kong_hyperion-app:8000/storage/v1/object/sign/public/users/05e60ccc-f249-41fa-a358-3..."
  },
  {
    error: null,
    signedURL: "/object/sign/public/users/05e60ccc-f249-41fa-a358-38d6a9c36e74/file(1).txt?token=eyJhbGciOiJIUzI1NiI...",
    signedUrl: "http://supabase_kong_hyperion-app:8000/storage/v1/object/sign/public/users/05e60ccc-f249-41fa-a358-3..."
  }
]

System information

bombillazo commented 1 year ago

any update on this issue?

bombillazo commented 7 months ago

Update?