Implementing OAuth accounts packages
Today, there are so many popular authentication services available, with such large user bases, that it's kind of silly not to take advantage of those services. If you use the accounts system of a major service, like Twitter or GitHub, you instantly tap into an enormous user base which can increase the use of your app. This recipe will show you how to implement an OAuth accounts system in a Meteor app, using the Twitter accounts service as an example.
Getting ready
We are going to focus almost exclusively on the accounts and authentication piece of our application, and as such, we only need a very simple, baseline application.
In a terminal window, create your root project by entering the following commands:
$ meteor create twitter-login $ cd twitter-login $ mkdir {client,server,both} $ mv twitter-login.* client/ $ meteor add twbs:bootstrap $ meteor
That's all it takes. Everything else will be done inside our recipe, so let's get going!
How to do it...
We...