Skip to content

SecretStorage.getSecret method

SecretStorage › getSecret

Official

Gets a secret from storage

Signature:

getSecret(id: string): string | null

Parameters:

Parameter Type Description
id string The secret ID

Returns: string | nullThe secret value or null if not found

Since: 1.11.4