I want to ask can we set 2 different authentication in a pack? Like the code below, I want to have ability to identify by user based on bearer token, and I also want to access some key that use for all user.
export const pack = coda.newPack();
pack.addNetworkDomain(config.domain);
pack.setSystemAuthentication({
type: coda.AuthenticationType.Custom,
params: [
{name: "security_key", description: "The Security Key"},
],
});
pack.setUserAuthentication({
type: coda.AuthenticationType.HeaderBearerToken,
});
If I do this, I notice I won’t able to retrieve the key value, instead of the real value, it just return me
“{{key-1234}}”. After I remove the setUserAuthentication, the real value will show.
Any idea I can fix this? Thanks.