We are aware of the issue with the badge emails resending to everyone, we apologise for the inconvenience - learn more here.

Forum Discussion

AdnanL's avatar
AdnanL
Helpful | Level 5
3 years ago

How can I solve this error: Property 'refresh_token' does not exist on type 'object'?

Hello, I am trying to make a replica in Typescript of the Dropbox webhook (that converts md files to html) that was built in Python. I copy-pasted the authentication flow from this example and I had...
  • Greg-DB's avatar
    Greg-DB
    3 years ago

    AdnanL Thanks. That output looks correct and should allow the code to get the "token.result.refresh_token" value. When you say you "did not run the script before I posted this issue", do you mean that when you originally posted this and said you "reached this error that I couldn't solve", that was only a warning you saw in your IDE, and not an error occurring during execution? It sounds like this was just a TypeScript type warning, and not something preventing this code from running properly. Is that correct?

     

    By the way, for future reference, do not post your full access or refresh token values like this. I've redacted them from your screenshot now.