twitter-tokens-generator

This project generates access tokens for Twitter apps

MIT License

Stars
5

Twitter OAuth Tokens Generator

This is a Twitter authentication tokens generator for v1.1 and v2 apps that use OAuth.

With this keys you can use and manage a Twitter account with code using some libraries like Twit, or some apps like Twitter Crypto Bot.

📋 Requirements

Follow the steps

  • Once you have your Twitter developer account, create a new project and app with it.
  • Open the app settings, go to the "Keys and tokens" section and generate an API Consumer Key and a Consumer Secret Key. Save them somewhere safe.
    • If you have already generated the keys before and lost them, simply click on regenerate keys.
  • Inside the app settings go to "Edit authentication settings".
    • Enable "3-legged OAuth".
    • Add a callback url exactly like this http://localhost:3000/twitter/callback.
  • Clone this repo to your computer.
  • Execute yarn or npm i inside the repo's directory.
  • Create a file named .env in the root folder of the repository and add the following:
CONSUMER_KEY=YOUR_CONSUMER_KEY
CONSUMER_SECRET=YOUR_CONSUMER_SECRET
  • Run yarn start or npm start and wait for your browser to open.
  • Log in with your Twitter account that is going to be controlled by your Twitter application, or in case you are already logged in, just authorize it.
  • Once it's finished, every key and token are going to be copied to your clipboard. Just paste them where you need.

💖 Support the project

If you like what we do and want to encourage us to continue creating stuff, starring and sharing this project would be really appreciated!

✨ Contributing

Contributions are more than welcome!

We think that you might have great ideas to make this project better. If you do, please create a pull request and/or issue following the contribution guidelines.

😃 Authors

📄 License

MIT

This project was made with ❤ and JavaScript