Skip to content

mintDopplerToken

mintDopplerToken(input, options): Promise<MintTokenResult>

Defined in: plugins/holocron-plugin-doppler/src/mint-token.ts:25

Makes a Doppler service token for a layer through POST /v3/configs/config/tokens: scoped to the plugin’s one project and the config the configs option names for that layer, with read access (the declaration’s read permission; its write is absent) and an expiry from the declared rotation. A personal token cannot make another personal token, which is why the result is a service token. It refuses, before any call, a layer with no declared permissions, no project or no config for the layer. The value is returned once, never printed.

MintTokenInput

DopplerServiceTokenOptions

Promise<MintTokenResult>