In my node I use an API with OAuth authentication.
I save the refresh token in the node credentials.
When the access token is refreshed, the API also returns a new refresh token.
How can I save the new refresh token in the credentials file at runtime?
I already tried it with RED.nodes.addCredentials (node.id, credentials);, but this does not change the credentials file.
After a restart, the old refresh token is active again.