getUrl
Get a long-lived download URL for a file in Storage.
Usage
Prefer getBytes or signed URLs for private files. Throws an error if the operation fails.
Example
import { db } from 'refirebase';
const url = await db.storage.getUrl('avatars/me.jpg');
console.log(url);Parameters
| Param | Type | Description |
|---|---|---|
filePath* | string | The path to the file in Storage. |
Return value
Returns
Promise<string>A promise that resolves to the download URL.