How to create a Twitter application for user login with OAuth

Published on

Create a Twitter application

First things first, you’ll need to create a Twitter application, that contains the needed api tokens and secrets.

Follow these 6 steps:

  1. Visit Twitter Developer Portal, login and select Apps from the menu:

  2. Create a new app

  1. Give it a name and description

  1. Important: Select Enable Sign in with Twitter and add the following url to the list of Callback URLs:

  1. In your app settings, head over to Keys and Tokens

  1. Get your Consumer API key and Consumer API secret key and copy them to your clipboard, you’ll need them in the code

Now you have everything you need to authenticate through the Twitter API with Node.js!

Here, have a slice of pizza 🍕