Hello guys
Is it possible to partial update the app config from iparams.js? Our config page has several fields, on of them is API KEY, this API key needs to be stored in the secured params.
Everytime when the user goes into the app settings and would like to change something, they need to enter again the API key, because we can’t retrieve it and update it again.
config.push({
aaa: aaa,
bbb: bbb
});
// Add to secure tenants object (with API key)
securedConfig[xxxx] = {
aaa: aaa,
bbb: bbb,
api_key: api_key
};
});
return {
__meta: {
secure: ["securedConfig"],
},
config: tenants,
securedConfig: securedConfig,
};
We have also tried something like this:
return {
__meta: {
secure: ["api_key"],
},
config: config,
api_key: api_key
}
// When when we don’t want to update api_key , we would return this
return {
__meta: {
secure: ["api_key"],
},
config: config,
}
But the API key always get’s wiped.
Thank you very much