I have a similar use case as written in the Node-RED docs:
For example, for a node to support an OAuth workflow, it must retain server-assigned tokens that the user never sees. The Twitter node provides a good example of how this can be achieved.
In my case I want to store a machine user clientSecret in the backend (server-assigned - the user is not supposed to see it). I know I could hash this secret, return it to my config-node, use it somewhere and replace the hashed secret with the real secret in the backend again if it's equal... however, is there a way how to persist the clientSecret in the backend and access it directly without exposing it to users?
FYI: I couldn't find an example like this on the Twitter node (node-red-nodes/social/twitter/27-twitter.js at master · node-red/node-red-nodes · GitHub).