Hello,
I'm building an app that uses OAuth for registration and
authentication. Is there any way to log an authenticated user out of
twitter, so that he/she can log in with a different twitter account?
Calling the REST endpoint /account/end_session.json doesn't work.
Thanks,
Jonathon Hill
Hi Jonathon,
You'd handle this on your own back end. Using OAuth a user is never logged
in -- there is no concept of a session or persistence -- it's all
stateless. The association between your user and an access token is your
own. If you want a user to be able to use multiple twitter accounts on
You can add send users to
https://twitter.com/oauth/authenticate?oauth_token=xyzforce_login=true(notice
the force_login=true) to have users always prompted for username
and password on twitter.com.
http://apiwiki.twitter.com/Twitter-REST-API-Method:-oauth-authenticate