Hello everyone,
I'm currently working on developing a server-side application (using TypeScript) that integrates with Dropbox among other functionalities. I've created an application in the app console, granted it the necessary access, and subsequently generated an access token using the app console.
Within my application, I'm utilizing the Dropbox SDK and initializing it as follows:
this.fileClient = new Dropbox({
accessToken: process.env.DROPBOX_ACCESS_TOKEN,
selectUser: process.env.DROPBOX_USER,
});
Initially, everything works smoothly until the access token expires, leading to an 'expired_access_token' error. I had the impression that the SDK would handle token refreshing automatically. Despite searching extensively, I haven't been able to find a solution.
By the way, the app console provides me with a short-lived token (starting with 'sl.').