Posted on September 7, 2015 by Chris Harrington

Implementing Sign in with Twitter for Node.js

More and more recently, I’ve been seeing small applications implementing sign in with Twitter, Google, GitHub, LinkedIn, etc. I think this is a great move for a number of reasons. First, so I don’t have to sign up for yet another account at yet another site, and secondly because app developers no longer have to implement their own user sign up scheme with all the trimmings: forgotten passwords, activation emails, and so on. I’m sure a lot of developers out there have those pieces of code as part of their toolbox, but for those who don’t, OAuth sign ins are so much easier to build. I’ve written a guide today that describes how to implement sign in with Twitter. And because I’m really into Node.js at the moment, it’s going to be written with JavaScript.

For those of you who just want to cut to the chase, I’ve made the server-side code available here.

Continue reading