I have the following workflow in my application
I am generating some files and I am saving it to a dropbox account, the files are only saved to one specific account and the app and account are under the same email/user
I keep getting expired access token when using the js sdk, is there a way to get around this? here is my code to upload files
const dropbox = require("dropbox");
const client = new dropbox.Dropbox({
accessToken: token,
});
await client.filesUpload({
path:'/folder/image.jpg',
contents: buffer,
});
but that gives me an error after a couple of hours, I don't want to have to go through 0auth flow because this a simple node script and not a complete application