Skip to content

Commit

Permalink
docs: update import (#124)
Browse files Browse the repository at this point in the history
  • Loading branch information
kewinzaq1 committed Nov 29, 2022
1 parent 20ab562 commit 68d4b51
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -15,12 +15,12 @@ npm install @supabase/storage-js
### Connecting to the storage backend

```js
import { SupabaseStorageClient } from '@supabase/storage-js'
import { StorageClient } from '@supabase/storage-js'

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

const storageClient = new SupabaseStorageClient(STORAGE_URL, {
const storageClient = new StorageClient(STORAGE_URL, {
apikey: SERVICE_KEY,
Authorization: `Bearer ${SERVICE_KEY}`,
})
Expand Down

0 comments on commit 68d4b51

Please sign in to comment.