altralaser
altralaser

Reputation: 2073

How to reconnect app with Dropbox API

I have an iOS app written in Swift which downloads files from the Dropbox. For this purpose I'm using the SwiftyDropbox framework.

If I understand it right, the framework stores the generated access token in a shared memory so the app doesn't have to connect one more time.
My problem is that I want to clear this memory because I want to force my app to reauthorize.

The reason is that the app was bound via oauth1 which is not supported anymore. So I want to get a oauth2 token instead.
But I found no way. Removing and reinstalling the app has no effect.

Upvotes: 0

Views: 190

Answers (1)

Rashwan L
Rashwan L

Reputation: 38833

Use the DropboxClientsManager.unlinkClients() for this:

call unlinkClients to logout Dropbox user and clear all access tokens

Upvotes: 0

Related Questions