Skip to content

Commit

Permalink
docs: async apiToken function
Browse files Browse the repository at this point in the history
  • Loading branch information
paveltiunov committed Jul 15, 2020
1 parent 65b19c9 commit 28e8a4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/cubejs-client-core/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<string>), options: CubeJSApiOptions): CubejsApi;
Expand Down

0 comments on commit 28e8a4a

Please sign in to comment.