I’m currently trying to write a proxy in Node.js using repl.it, as I plan to release an open-source system for other developers to use to essentially “partner” them with my own games. I’ve gotten a database set up where I store logins (users join my game, create an account which is then stored in the database, then get redirected back to the game they were in), but I have the issue of the authorization. I want to write a proxy for this, since I don’t want to send requests directly, as that would expose the authorization token, leaving the developers able to freely tamper with the database. The proxy would solve this as the module would send a request to the proxy, and the proxy sends a request to the database, and vice versa.
The way I currently have this set up will leave my database vulnerable to tampering if I distribute it as-is, so a proxy is a must-have.
Assistance with helping me understand this would be greatly appreciated.