Pyrebase icon indicating copy to clipboard operation
Pyrebase copied to clipboard

Fixed storage get_url() token bug

Open hereisamara opened this issue 3 years ago • 1 comments

The current get_url method takes the bearer token as a token URL parameter which in fact is a different token, named access token or download token.

I have changed the method so that it works for all types of firebase storage rules by retrieving the access token first and passing it into the URL.

Before the get_url() method returns image

After changes, it returns the url with correct token image

hereisamara avatar Apr 10 '22 08:04 hereisamara

Hi there, I've initiated a project to maintain this library, and I'll be using your solution to fix the mentioned bug. I'll co-author you in the commit of the fix, as I've modified it a bit. Feel free to reach me using my email displayed in my profile.

Repo: firebase-rest-api available in PyPI

best regards

AsifArmanRahman avatar Jul 22 '22 11:07 AsifArmanRahman