flamelink / flamelink-js-sdk

🦊 Official Flamelink JavaScript SDK for both the Firebase Realtime database and Cloud Firestore
https://flamelink.github.io/flamelink-js-sdk
MIT License
43 stars 5 forks source link

SigningError when using Admin SDK and getUrl #170

Closed leeprobert closed 3 years ago

leeprobert commented 3 years ago

I have a cloud function running to get a files URL and store it to my Document but when the function runs I get a SigningError like so: Failed to get URL: SigningError: The caller does not have permission Error I am using Firebase Admin with Flamelink/storage

gitdubz commented 3 years ago

Hi @leeprobert

This seems related to the permissions enabled for the service account used to instantiate the admin sdk.

Can you kindly check that the service account/admin account you are using has the appropriate permissions needed for signing urls?

More info on this issue https://github.com/googleapis/nodejs-storage/issues/1222

more specifically this https://github.com/googleapis/nodejs-storage/issues/1222#issuecomment-649216642

Also have a look at this https://stackoverflow.com/questions/53305784/signingerror-with-firebase-getsignedurl

leeprobert commented 3 years ago

Yes, I had to go into Google Cloud and add the permissions 👍