You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.

Forum Discussion

Fomka_Wyverno's avatar
Fomka_Wyverno
New member | Level 2
12 months ago

Get Access Token JavaScript in fetch

    const parameters = { 'code': params.code, 'grant_type': 'authorization_code', 'redirect_uri': window.location.origin, ...
  • Greg-DB's avatar
    Greg-DB
    12 months ago

    It looks like you're sending the parameters as JSON, but the /oauth2/token endpoint expects them as application/x-www-form-urlencoded POST parameters, and so your parameters aren't getting read. Update your implementation to send application/x-www-form-urlencoded POST parameters instead.