getSecretValue( )


Retrieves a secret value by name.

__Caution:__ Only use a secret's value in the backend code. Returning the secret value in the frontend is a security risk.
Method Declaration
Copy
Method Parameters
namestringRequired

The name of the secret to get the value of.

Returns
Return Type:Promise<GetSecretValueResponse>
Errors

This method doesn't return any custom errors, but may return standard errors. Learn more about standard Wix errors.

Did this help?