I am trying to load the Secret Key in the API Secret but no result
I created a sample secret key containing all the tokens I need to API Secret.
to load this secret key from the API Secret, I used several functions but no result.
all the method below has no result.
https.createSecureString({ input: 'custsecret_test_api_secret' });
https.createSecretKey({ secret: 'custsecret_test_api_secret', encoding: "BASE_64" });
crypto.createSecretKey({ secret: 'custsecret_test_api_secret', encoding: "BASE_64" });
Hi,
You need curly braces when referencing a secret:
https.createSecureString({ input: '{custsecret_test_api_secret}' });
Thanks,
Chris
Hi Chirs, do you know how to log a secret? my secret is in JSON format like this:
{ key: key, token: token } I need to access the JSON to set its values. I want to make sure that I am accessing the correct value.



