method IAzureSecretsClient.getSecret
IAzureSecretsClient.getSecret(name: string): Promise<string | null>

Gets a secret's current value.

Parameters

name: string

The Key Vault secret name

Return Type

Promise<string | null>

The secret string, or null when it does not exist

Usage

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