Skip to content

Commit c14843b

Browse files
committed
feat(docs): simplify authentication parameters example in README
1 parent bd6474f commit c14843b

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

README.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -337,10 +337,7 @@ Generate authentication parameters for secure client-side file uploads:
337337

338338
```ts
339339
// Generate authentication parameters for client-side uploads
340-
const authParams = client.helper.getAuthenticationParameters({
341-
privateKey: process.env['IMAGEKIT_PRIVATE_KEY'], // This is the default and can be omitted
342-
password: process.env['OPTIONAL_IMAGEKIT_IGNORES_THIS'], // This is the default and can be omitted
343-
});
340+
const authParams = client.helper.getAuthenticationParameters();
344341
console.log(authParams);
345342
// Result: { token: 'uuid-token', expire: timestamp, signature: 'hmac-signature' }
346343

0 commit comments

Comments
 (0)