I can use java or nodejs at the backend. I have read several posts on the web and I am considering three options
- Storing the data in a local file or environment variables.
- Storing the data in the database on the machine
- Storing the data in the database on a different server and getting them through an api.
Which is the best way to store credentials and why?