Skip to content

Commit 68d4b51

Browse files
authored
docs: update import (#124)
1 parent 20ab562 commit 68d4b51

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ npm install @supabase/storage-js
1515
### Connecting to the storage backend
1616

1717
```js
18-
import { SupabaseStorageClient } from '@supabase/storage-js'
18+
import { StorageClient } from '@supabase/storage-js'
1919

2020
const STORAGE_URL = 'https://<project_ref>.supabase.co/storage/v1'
2121
const SERVICE_KEY = '<service_role>' //! service key, not anon key
2222

23-
const storageClient = new SupabaseStorageClient(STORAGE_URL, {
23+
const storageClient = new StorageClient(STORAGE_URL, {
2424
apikey: SERVICE_KEY,
2525
Authorization: `Bearer ${SERVICE_KEY}`,
2626
})

0 commit comments

Comments
 (0)