@dqn/tw-xauth

Authenticate Twitter account using XAuth.

Usage no npm install needed!

<script type="module">
  import dqnTwXauth from 'https://cdn.skypack.dev/@dqn/tw-xauth';
</script>

README

tw-xauth

Authenticate Twitter account using XAuth.

Installation

$ npm install @dqn/tw-xauth

Usage

const { xauth } = require('@dqn/tw-xauth');

xauth({
  screenName: 'SCREEN_NAME',
  password: 'PASSWORD',
  consumerKey: 'CjulERsDeqhhjSme66ECg',
  consumerSecret: 'IQWdVyqFxghAtURHGeGiWAsmCAGmdW3WmbEx6Hck',
}).then((res) => {
  console.log(res.oauth_token);
  console.log(res.oauth_token_secret);
});

License

MIT