Skip to content

revokeDopplerToken

revokeDopplerToken(input, options): Promise<RevokeTokenResult>

Defined in: plugins/holocron-plugin-doppler/src/revoke-token.ts:13

Deletes a Doppler service token through DELETE /v3/configs/config/tokens/token by the slug minting returned. A slug lives in one project and config and the command knows only the slug, so it is looked for in each distinct config the plugin’s configs option names, in order; it refuses, before any call, without a project or a config. The call is made with the personal token, which is never a service token, so the id can never be the token in use and no own-token check is needed. A config that has no such token (404) is skipped, and when none has it the result is revoked: false; any other refusal throws. The slug goes in the JSON body, which the client serializes.

RevokeTokenInput

DopplerServiceTokenOptions

Promise<RevokeTokenResult>