dropbox-sdk-js icon indicating copy to clipboard operation
dropbox-sdk-js copied to clipboard

Documentation does not say if this SDK is for server or browser

Open RichardJECooke opened this issue 3 years ago • 2 comments

Describe the bug The documentation on dropbox, https://www.dropbox.com/developers/documentation/javascript#overview, doesn't say if this SDK is for the browser or server (node), nor does the readme on github.

How are we supposed to know whether we can use this SDK in the browser or not?

To Reproduce Read the documentation

Expected Behavior It says "This SDK can be used either in Node.js on the server, or in the web browser without a server"

Actual Behavior ""

Versions All Any Both NA

RichardJECooke avatar Jul 29 '22 11:07 RichardJECooke

Thanks for the note! I'll ask the team to update this to clarify.

greg-db avatar Jul 29 '22 15:07 greg-db

I think it's both. The problem though is that in the browser you need to polyfill Node utils and crypto.

  • Browser usage example: https://github.com/rogebrd/dropbox-oauth-popup
  • Backend usage example: https://dev.to/eyalbenivri/firebase-auth-with-a-non-supported-provider-dropbox-444e

doup avatar Feb 14 '23 09:02 doup