method SecretsService.prototype.has
SecretsService.prototype.has(name: string): Promise<boolean>

Reports whether a secret exists and is accessible.

Parameters

name: string

Secret name

Return Type

Promise<boolean>

true if the secret exists

Usage

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