parse-community / Parse-SDK-Android

The Android SDK for Parse Platform
https://parseplatform.org/
Other
1.88k stars 735 forks source link

Manage multiple accounts #1056

Open riccardoch opened 4 years ago

riccardoch commented 4 years ago

My app allows the user to connect with multiple accounts; I use "ParseUser.becomeInBackground(sessionToken)" to connect to the different accounts. I'd like to clear local session data without deleting the session in Parse Database; ParseUser.getCurrentUser() should return null. Using logOut function is not a good solution because the sessionToken is removed from the Database. Is there a way to clear local session data without logging out?