We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 20ab562 commit 68d4b51Copy full SHA for 68d4b51
README.md
@@ -15,12 +15,12 @@ npm install @supabase/storage-js
15
### Connecting to the storage backend
16
17
```js
18
-import { SupabaseStorageClient } from '@supabase/storage-js'
+import { StorageClient } from '@supabase/storage-js'
19
20
const STORAGE_URL = 'https://<project_ref>.supabase.co/storage/v1'
21
const SERVICE_KEY = '<service_role>' //! service key, not anon key
22
23
-const storageClient = new SupabaseStorageClient(STORAGE_URL, {
+const storageClient = new StorageClient(STORAGE_URL, {
24
apikey: SERVICE_KEY,
25
Authorization: `Bearer ${SERVICE_KEY}`,
26
})
0 commit comments