Whilst the credential system outlined above is sufficient for most cases, in some circumstances it is necessary to store more values in credentials than just those that get provided by the user. 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.
I've tried to just assign the value to
this.credentials.refreshToken but that value is lost after Node-RED is stopped.
Can you help me out with my use case?