My app is working great for getting data into Salesforce and this library has made it much easier, however, my session is expiring so when I leave it running overnight, I start getting a 401 response.
I have autoRefresh set to true in the options to createConnection. When I'm debugging locally, opts.oauth.refresh_token is undefined in _apiRequest on line 755. Any ideas? Is there another step to get autoRefresh working?
My app is working great for getting data into Salesforce and this library has made it much easier, however, my session is expiring so when I leave it running overnight, I start getting a 401 response.
I have
autoRefresh
set totrue
in the options tocreateConnection
. When I'm debugging locally,opts.oauth.refresh_token
isundefined
in_apiRequest
on line 755. Any ideas? Is there another step to get autoRefresh working?