getSecret
chainalign-backend / utils/secretManager / getSecret
Function: getSecret()
getSecret(
secretName,projectId):Promise<string>
Defined in: utils/secretManager.js:18
Retrieves a secret from Google Secret Manager.
Parameters
secretName
string
The name of the secret to retrieve.
projectId
string
The Google Cloud project ID.
Returns
Promise<string>
The secret value.
Throws
If the secret cannot be retrieved.