Need to see if your shared folder is taking up space on your dropbox 👨💻? Find out how to check here.
Forum Discussion
aesqe
2 years agoExplorer | Level 4
React Native: is it possible to invoke the installed Dropbox mobile app to authorize a user?
Hello 🙂 I'm working on a React Native app which supports backing up files to Dropbox. I'm using the react-native-app-auth library to authorize my app for access to DB and it all works fine a...
Здравко
2 years agoLegendary | Level 20
aesqe wrote:... looking at SwiftyDropbox code, it seems like I'll need to calculate the code verifier and code challenge; ...
Actually you don't need it, aesqe, but is advisable. You do it when/if need/want use PKCE code flow - again something advisable, not mandatory.
aesqe wrote:... I'll see if I can somehow grab that from the RN auth library so I don't have to duplicate it in JS, which would be a pain.
...
You can "grab" it, ready for use, from different places, including Dropbox Javascript SDK. 😉
By the way, I pointed you to Dropbox Swift SDK only for authorization URI format only, that what asked for at that moment. You may use any other places for examples source though; preferably in JS of course.
Hope this clarifies matter.
aesqe
2 years agoExplorer | Level 4
Здравко the problem is in using crypto in react native, as there is no out-of-the-box support. And, unfortunately, it's the reason why I can't use dropbox js sdk in RN, as it relies directly on crypto in the code (which means a lot of workarounds and manual patching to make it work).
There are a few libraries that add proper random values and sha256 support. I'd just have to test to see which one works for me 👍
About 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!