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.
- Once you have your Twitter developer account, create a new project and app with it.
- Make sure your app has v1.1 and v2 Access. You can check this by going to "Projects & Apps > Overview".
- 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
ornpm 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
ornpm 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.
If you like what we do and want to encourage us to continue creating stuff, starring and sharing this project would be really appreciated!
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.
This project was made with ❤ and JavaScript