getSecret
chainalign-backend / lib/gcpSecretManager / getSecret
Function: getSecret()
getSecret(
secretName):Promise<string>
Defined in: lib/gcpSecretManager.js:14
Retrieves a secret from Google Cloud Secret Manager.
Parameters
secretName
string
The name of the secret to retrieve (e.g., 'BACKEND_API_TOKEN').
Returns
Promise<string>
The secret value.
Throws
If the secret cannot be retrieved or is not found.