method SecretsService.prototype.rotate
SecretsService.prototype.rotate(
name: string,
value: string
): Promise<void>

Rotates a secret to a new value and refreshes the cache entry.

Parameters

name: string

Secret name

value: string

The new secret value

Return Type

Promise<void>

Usage

import { SecretsService } from "secrets-plugin/src/index.ts";