trivago/Heimdall.droid

How do I logout?

Closed this issue · 2 comments

Removing the token from OAuth2AccessTokenStorage doesn't require the user to login again. The login activity opens and closes in a couple of seconds automatically authenticating the user again.

(I'm using the Trakt API example).

Gi-lo commented

When you remove the access token, the Android webview will still use the login data that it has cached (username/password). That is why it will automagically authenticate the user again. In order to really logout, you have to clear the webview cache and also (optional) revoke the access token on the server.

I've added the logout feature (#39) as action menu item to the sample application :)

PS: Please close this issue if you have no further questions.

Great. Thank you very much!