dropbox-sdk-js
dropbox-sdk-js copied to clipboard
Wrong Typings for refresh access token methods
Describe the bug The index.d.ts file shows wrong type information for the two following methods:
- checkAndRefreshAccessToken
- refreshAccessToken
To Reproduce Compare the types of https://github.com/dropbox/dropbox-sdk-js/blob/main/types/index.d.ts
with the actual return types: https://github.com/dropbox/dropbox-sdk-js/blob/main/src/auth.js
Expected Behavior The typings file index.d.ts should declare the return type of the two mentioned methods to be a Promise.
Actual Behavior The typings file index.d.ts claims that the return type of the two mentioned methods is void.
Screenshots
Versions
- What version of the SDK are you using? 9.4.0
- What version of the language are you using? Typescript 4.1.0
- Are you using Javascript or Typescript? Typescript
Thanks! I'll ask the team to fix that up.
Still waiting for this. Any update?
No, I don't have an update on this from the team yet. I'll be sure to follow up here once I do.
any updates? its been years
No, unfortunately I don't have news on this issue.