Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to unlink or log out of dropbox account on iOS

I am using Dropbox in my own app. Once I login, the tableview is displayed and every time I load that view, I go straight to the table view. But, my concern is, suppose different people are using this application, they might want to login with their own accounts so I want to have an option to logout. How do I do that?

like image 799
Namratha Avatar asked May 09 '11 10:05

Namratha


People also ask

How do I switch accounts on the Dropbox app?

Switch accounts on the Dropbox mobile app On Android, tap the menu icon (horizontal lines) in the top left and then Settings. On iPhone/iPad, tap the account icon (person) in the bottom right and then the gear icon in the top left.


2 Answers

    [[DBSession sharedSession] unlinkAll];

Works for me.

like image 143
Paul Slocum Avatar answered Sep 22 '22 03:09

Paul Slocum


You should drop the tokens you got from the Oauth process , and start the login process over.

https://www.dropbox.com/developers/docs#authentication-for-mobile-devices

Update April '14 : This answer is a bit outdated, as APIs tend to change over time. Other suggestions were made here as well.

like image 43
Nir Golan Avatar answered Sep 20 '22 03:09

Nir Golan