Skip to content

Storage: Type error in data.signedURL. #1157

Answered by inian
ru88s asked this question in Questions
Discussion options

You must be logged in to vote

Hi @ru88s, yes this was a error in types and I have just pushed out a fix. Can you try with supabase-js v1.11.4?
Also from your last discussion, it looked cleaner to access the signedURL from outside data too. So now you can do

const { data, error, signedURL } = await supabase.storage.from("images").createSignedURL("cat.png", 60)
// you can use either of the following
console.log(data.signedURL);
console.log(signedURL);

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@ru88s
Comment options

@ru88s
Comment options

@inian
Comment options

@ru88s
Comment options

Answer selected by ru88s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants