Forum Discussion

chibuzor's avatar
chibuzor
Explorer | Level 4
7 years ago
Solved

Dropbox Javascript SDK + Auth0 access token gives invalid_access_token error

Oh my, let me begin: What I have working: Auth0 application created and connected to dropbox. The 'Try' option successfully gives me access to my app folder on a user's dropbox account. Great ...
  • Greg-DB's avatar
    7 years ago

    We can't offer help with Auth0 itself, but we'll be happy to help with the Dropbox side of things.

    An OAuth 2 access token for the Dropbox API should work the same way regardless of exactly where/how you get it (e.g., from the app's info page on Dropbox App Console, or from the actual Dropbox OAuth app authorization page), as long as it is in fact an access token received from Dropbox, and it hasn't been revoked.

    Can you print out and inspect the "this.auth.accessToken" value to see what it is? (Don't post it here if it does look like an access token though.)

    For instance, make sure that the Dropbox OAuth app authorization flow completed successfully and the resulting access token string was saved in that variable.

    I see that you are setting "responseType" to "token id_token", but if that is the value used for the Dropbox /oauth2/authorize page, that should just be "token". Likewise, the Dropbox /oauth2/authorize page doesn't currently take "scope" or "domain" parameters.

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.

The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.

If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X, Facebook or Instagram.

For more info on available support options for your Dropbox plan, see this article.

If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!