i've setup (with socket.io) a chatserver for our application. On the serverside (node.js) i want to execute Kinvey calls (for example to save each message)
I'm facing the problem, how to authenticate these calls on the node.js side. Sending the username/passwort to the node instance doesn't seem to be really "nice" - but creating a user just to execute these calls either...
An idea?
Best, Nico
1 Comment
M
Mark
said
over 6 years ago
Since Node.js is server-side, you can safely use the Master Secret for this. Or, create a specific user and hard code the username / password in your Node.js app.
Nico Barelmann
i've setup (with socket.io) a chatserver for our application. On the serverside (node.js) i want to execute Kinvey calls (for example to save each message)
I'm facing the problem, how to authenticate these calls on the node.js side. Sending the username/passwort to the node instance doesn't seem to be really "nice" - but creating a user just to execute these calls either...
An idea?
Best, Nico