Skip to content

1.10.0

Latest
Compare
Choose a tag to compare
@slvrtrn slvrtrn released this 17 Dec 14:12
64f266d

New features

  • Added support for JWT authentication (ClickHouse Cloud feature) in both Node.js and Web API packages (#270). JWT token can be set via access_token client configuration option.

    const client = createClient({
      // ...
      access_token: '<JWT access token>',
    })

    Access token can also be configured via the URL params, e.g., https://host:port?access_token=....
    It is also possible to override the access token for a particular request (see BaseQueryParams.auth for more details).

    NB: do not mix access token and username/password credentials in the configuration; the client will throw an error if both are set.