From 28e8a4a0bcc7eaf7232a9f9b119acbf1c8bb204f Mon Sep 17 00:00:00 2001 From: Pavel Tiunov Date: Wed, 15 Jul 2020 11:16:31 -0700 Subject: [PATCH] docs: async apiToken function --- packages/cubejs-client-core/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/cubejs-client-core/index.d.ts b/packages/cubejs-client-core/index.d.ts index 8944ec54cf722..34222559420cc 100644 --- a/packages/cubejs-client-core/index.d.ts +++ b/packages/cubejs-client-core/index.d.ts @@ -708,7 +708,7 @@ declare module '@cubejs-client/core' { * ); * ``` * - * @param apiToken - [API token](security) is used to authorize requests and determine SQL database you're accessing. In the development mode, Cube.js Backend will print the API token to the console on on startup. Can be an async function without arguments that returns the API token. + * @param apiToken - [API token](security) is used to authorize requests and determine SQL database you're accessing. In the development mode, Cube.js Backend will print the API token to the console on on startup. In case of async function `authorization` is updated for `options.transport` on each request. * @order 1 */ export default function cubejs(apiToken: string | (() => Promise), options: CubeJSApiOptions): CubejsApi;