This package is deprecated. Please use the official SDK package @camunda8/sdk. See: https://github.com/camunda/camunda-8-js-sdk
Deterministically extract Camunda 8 Client credentials from the environment in Node.js. Uses neon-env under the hood.
To install in your project:
npm i camunda-8-credentials-from-env
To use:
import * as c from "camunda-8-credentials-from-env"
// throws if required credential elements are not found in the environment
const operateCreds = c.getOperateCredentials()
const optimizeCreds = c.getOptimiseCredentials()
const tasklistCreds = c.getTasklistCredentials()
const zeebeCreds = c.getZeebeCredentials()
const consoleCreds = c.getConsoleCredentials()
The library will only hit the environment once. Further calls to the same method will return a cached set of values.