Skip to main content

Function: createSecretStore()

createSecretStore(driver, environment, options?): SecretStore

Defined in: packages/secrets/src/drivers.ts:67

Builds the configured driver, after checking it may run in environment. This is the only way configuration obtains a store, so the check cannot be skipped by calling a constructor.

Parameters​

driver​

"file"

environment​

"staging" | "development" | "ci" | "integration" | "production"

options?​

SecretStoreOptions = {}

Returns​

SecretStore

Throws​

See assertDriverPermitted.