Skip to content

Genesys Cloud CX - NPM Package and Error when running from runJS #695

@alankleindev

Description

@alankleindev

Hi Luke,

When I try to run code within RunJS, I get the error:

'Error updating attributes:' Error: The client credentials grant is not supported in a browser.

I can run the same code in Node directly my copying the code I had in runJS to a file and running it that way.

From their NPM documentation HERE under Authentication:

"The Client Credentials grant only works when used in node.js. This is restricted intentionally because it is impossible for client credentials to be handled securely in a browser application."

Is the issue that runJS is an electron application and therefore why I am getting this error? It isn't a show stopper, just was curious is there is any way around it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions