Is it possible to pause the startup of a nodeJS server and ask the operator to enter some text before the server is finally fully started?
Background: I want to implement user authentication, and therefore use a token based system. To encode/decode those tokens, a seed (or secret) is required.
Since I don't really want to store that seed somewhere on the server, I was thinking about asking for it when the server starts, and then store it in a variable.
I know that I can pass the secret as a parameter on start, and it works that way, but then it's shown in the console. I'd love to have a prompt for the secret, without showing it (or maybe showing ****).
Is there a way to do that?