-
Notifications
You must be signed in to change notification settings - Fork 444
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to logout user with v2 API? #92
Comments
|
What do you mean by "log out"? Are you writing a mobile/web app and you want to connect to a different Dropbox account? Or are you talking about logging someone out of the Dropbox website? |
|
I'm writing an Android app from which user can upload some photos and stuff. So user log in through Java Dropbox APIv2 and everything works great. But let's say he wants to login with another Dropbox account, how can he log out/sign out (whatever you prefer) so he can use another user account. For now I'm just removing AccessToken from the SharedPrefs and run Auth.startOAuth2Authentication(..., ...) again, but I'm not sure if that is a correct way because that doesn't really log out user from the server. So how can I get the same behavior that I have when I click Sign out from browser on www.dropbox.com? |
|
What you are doing is correct. If you also want the Dropbox API server to delete its copy of the access token, call |
|
Works like a charm, thanks a mill. I'm closing this since it's solved now. |
|
@cakoose there is one more thing that has to be done in order for user to be Sign out on Android. We need to set Called:
I hope it helps someone. |
|
@kkontus |
|
@mr-cpp You should be able to call that with a If that's not working for you though, feel free to open a new issue with details so we can help. |
|
@greg-db |
|
@greg-db How I can resolve this issue? |
|
@panovvitalik I see you also opened a new issue for this, so I'll follow up with you there: #290 |
Is it possible to logout current user so new user can login through v2 API?
The text was updated successfully, but these errors were encountered: