Hacker News new | past | comments | ask | show | jobs | submit login

Twitter provides an undocumented endpoint that returns true/false depending on your session state.

  <script>
    function twitterSessionsPresent(state) {
      console.log(state);
    }
  </script>
  <script src='https://api.twitter.com/sessions/present.js?callback=twitterSessionsPresent'></script>



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: