Skip to content

Commit

Permalink
Merge pull request #36 from Charchit-beginner/patch-2
Browse files Browse the repository at this point in the history
updated get_url() docs to mention  user token
  • Loading branch information
nhorvath committed Jul 6, 2021
2 parents 529204b + d938435 commit 192ef82
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -431,10 +431,10 @@ storage.child("images/example.jpg").download("downloaded.jpg")

### get_url

The get_url method takes the path to the saved database file and returns the storage url.
The get_url method takes the path to the saved database file and user token which returns the storage url.

```
storage.child("images/example.jpg").get_url()
storage.child("images/example.jpg").get_url(user["idToken"])
# https://firebasestorage.googleapis.com/v0/b/storage-url.appspot.com/o/images%2Fexample.jpg?alt=media
```

Expand Down

0 comments on commit 192ef82

Please sign in to comment.