I’m using successfully getSecret function
import wixSecretsBackend from 'wix-secrets-backend';
export async function updateAccessToken() {
const myVar = await wixSecretsBackend.getSecret("myExsistingKey");
console.log(myVar);//to be seen on site monitoring for debug
}
but I get error “[“undefined, status: 403”]” when I try to use in similar way the listSecretInfo function:
import wixSecretsBackend from 'wix-secrets-backend';
export async function updateAccessToken() {
const myVar = await wixSecretsBackend.listSecretInfo();
console.log(myVar);//to be seen on site monitoring for debug
}
I’m using editor x, run the script from published site
Any Idea how I can use listSecretInfo ?
Thank you