question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

firebaseStorageDownloadTokens from object metadata

See original GitHub issue

[READ] Step 1: Are you in the right place?

Yes

[REQUIRED] Step 2: Extension name

This feature request is for extension: _ (storage-resize-images)

What feature would you like to see?

Any object on firebase storage contains firebaseStorageDownloadTokens from object metadata. However this is not available for resized images

How would you use it?

I use firebaseStorageDownloadTokens to construct the downloadUrl for the object

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:12 (6 by maintainers)

github_iconTop GitHub Comments

4reactions
jhuleattcommented, Dec 10, 2019

Maybe the extension can just call getDownloadURL after it creates the new image, but not block on that call? That way, by the time a client tries to access the image, the storage download tokens should be created.

Note: The missing firebaseStorageDownloadTokens seem to break the image previews in the Firebase console too

3reactions
Ehespcommented, Mar 5, 2020

There is overlap here with issue https://github.com/firebase/extensions/issues/140 - the issue is that the Admin SDKs (in our case NodeJS) cannot call getDownloadURL, as this needs to come from a client instance. We’re currently discussing the best solution/idea to handle the tokens/download URLs.

Read more comments on GitHub >

github_iconTop Results From Across the Web

javascript - Getting Google Cloud Platform custom metadata ...
I mixed up two projects. I re-tried it, and its work pretty nicely. Using this method I can retrieve the file token and...
Read more >
A guide to Firebase Storage download URLs and tokens
Technically, download tokens are stored as custom metadata on the storage object. If you browse to a file in the Google Cloud Console...
Read more >
Download files with Cloud Storage on Web - Firebase
Cloud Storage for Firebase allows you to quickly and easily download files from a Cloud Storage bucket provided and managed by Firebase. Note:...
Read more >
Make your Firebase Storage files available on upload
Because we're using object destructuring, the property won't be set if it's null ...(() => setDownloadToken ? null : { metadata: ...
Read more >
Upload base64 string to Firebase Storage - Google Groups
custom: 'metadata' ... Storage console at https://console.cloud.google.com to download your object and verify that it contains the data you meant to upload.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found