Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@dqn/tw-xauth

dqn23ISC1.0.1TypeScript support: included

Authenticate Twitter account using XAuth.

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