I landed here with the intention to find the same solution, as even we have been using it in a similar kiosk scenario as mentioned by @dilltree.
Interestingly enough, when this post was initially made, by @arvindknaidu, we used to use the twitter @anywhere JS api, to initiate a logout, by opening a popup. Before that we used to use twitter’s JS support, which I now don’t remember the name of. But the earlier one was the most seamless. @anywhere wasn’t that seamless, though it served our purpose.
Anywhere support is now gone, and I was looking for a JS solution to log a user out.
Now, an interesting fact for any one who’s doing kiosk solutions is that if you use the force_login parameter with either authorize or authenticate, the user’s twitter session does not persist, hence @dilltree’s security concern is resolved.
This is what we are doing now; using force_login. The problem is that after providing permissions, we used to have a beautiful page, where the users could follow a twitter handle. We cannot achieve that anymore, because the session does not persist. If we had a way to log the user out using JS, we would have been able to achieve the given use case.
@episod Would love to know your comments about this.