@@ -86,12 +86,16 @@ import { isEmptyObj } from './internal/utils/values';
8686
8787export interface ClientOptions {
8888 /**
89- * Your ImageKit private key starts with `private_`.
89+ * Your ImageKit private API key (it starts with `private_`).
90+ * You can view and manage API keys in the [dashboard](https://imagekit.io/dashboard/developer/api-keys).
91+ *
9092 */
9193 privateAPIKey ?: string | undefined ;
9294
9395 /**
94- * Do not set this, its value is ignored
96+ * ImageKit Basic Auth only uses the username field and ignores the password.
97+ * This field is unused.
98+ *
9599 */
96100 password ?: string | null | undefined ;
97101
@@ -187,7 +191,7 @@ export class ImageKit {
187191 * API Client for interfacing with the Image Kit API.
188192 *
189193 * @param {string | undefined } [opts.privateAPIKey=process.env['IMAGEKIT_PRIVATE_API_KEY'] ?? undefined]
190- * @param {string | null | undefined } [opts.password=process.env['ORG_MY_PASSWORD_TOKEN '] ?? does_not_matter ]
194+ * @param {string | null | undefined } [opts.password=process.env['OPTIONAL_IMAGEKIT_IGNORES_THIS '] ?? do_not_set ]
191195 * @param {string } [opts.baseURL=process.env['IMAGE_KIT_BASE_URL'] ?? https://api.imagekit.io] - Override the default base URL for the API.
192196 * @param {number } [opts.timeout=1 minute] - The maximum amount of time (in milliseconds) the client will wait for a response before timing out.
193197 * @param {MergedRequestInit } [opts.fetchOptions] - Additional `RequestInit` options to be passed to `fetch` calls.
@@ -199,7 +203,7 @@ export class ImageKit {
199203 constructor ( {
200204 baseURL = readEnv ( 'IMAGE_KIT_BASE_URL' ) ,
201205 privateAPIKey = readEnv ( 'IMAGEKIT_PRIVATE_API_KEY' ) ,
202- password = readEnv ( 'ORG_MY_PASSWORD_TOKEN ' ) ?? 'does_not_matter ' ,
206+ password = readEnv ( 'OPTIONAL_IMAGEKIT_IGNORES_THIS ' ) ?? 'do_not_set ' ,
203207 ...opts
204208 } : ClientOptions = { } ) {
205209 if ( privateAPIKey === undefined ) {
0 commit comments