Hello everybody! I had in my PHP server an OAUTH connection that I’m replicating i my new NodeJS app.
I’ve literally replicated the action, but i get this error:
{"status":"500","message":"Assignment to constant variable.","stack":"TypeError: Assignment to constant variable.\n at redirect_uri (/opt/node_app/lib/oauth/index.js:128:9)\n at OAuth2.authorize (/opt/node_app/lib/oauth/index.js:57:27)\n at App.authorize (/opt/node_app/lib/modules/oauth.js:28:22)\n at App._exec (/opt/node_app/lib/core/app.js:224:57)\n at App._exec (/opt/node_app/lib/core/app.js:206:28)\n at async App.exec (/opt/node_app/lib/core/app.js:177:9)\n at async App.define (/opt/node_app/lib/core/app.js:160:9)"}
The code is perfect, in fact I’ve copied the whole php file and changed it to be compatible with the NodeJS server.
Thanks!