So, I have a react application with a Node.js backend. Currently, my application allows franchise store owners (that have a role of Store Manager) the ability to login and has options for them to change their Call Queue Audio While Connecting and Hold Music. Obviously, as a role of Store Manager they are unable to do that which is why on my Node.js API I want to sign in as a super user account to process that call.
I've already attempted todo the following to process this call on the backend but my application doesn't allow the Password flow. So, I guess I'm wondering if something like this is possible in the first place or do I have to give the franchise store owners the ability to do this defined within their roles?
platform.login({
username: process.env.username,
extension: process.env.extension,
password: process.env.password
})