We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
whats
3 years agoExplorer | Level 4
Xcode swiftydropbox setup
Hey, Has anyone been able to set up Swiftydropbox without any user prompt ? I dont know the order or what needs to be called. I don't want the user to have to set up any login. Any quick breakdow...
Greg-DB
Dropbox Community Moderator
3 years agoThe API was designed with the intention that each user would link their own Dropbox account, in order to interact with their own files. While it is technically possible to always connect to just one account for all users, we do not officially support this, for various technical and security reasons.
whats
3 years agoExplorer | Level 4
Absolutely understandable, would you be able to direct me on this flow?
- Здравко3 years agoLegendary | Level 20
whats, you can take a look here how you can perform OAuth by hands and use the refresh token in your code (you'll need app secret too by the way).
- whats3 years agoExplorer | Level 4
Hey thank you so much! What does your code look like in xcode once you have these parameters? What are you calling?
- Здравко3 years agoLegendary | Level 20
whats wrote:... What does your code look like in xcode once you have these parameters? What are you calling?
The code anywhere looks exactly like you would code it, nothing else. There is no a single way to do it - it's matter of design decision. If you want to stick as much as possible to the Dropbox Swift SDK, you should use PKCE version of what I posted (i.e. not exactly the same) - Dropbox Swift SDK doesn't support app secret. In such a case (PKCE usage) you need to implement DropboxAccessToken object yourself and pass it further on client object initialization.
To avoid PKCE you need to re-implement (replace) refreshing process (adding app secret there).
Good luck.
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!