@clickhouse/client 1.10.0
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_tokenclient 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 (seeBaseQueryParams.authfor 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.