Book Image

Meteor Cookbook

By : Isaac Strack
Book Image

Meteor Cookbook

By: Isaac Strack

Overview of this book

Table of Contents (19 chapters)
Meteor Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Performing two-factor authentication


We can make any application more secure (and safer from bots or hack attempts) by providing two-factor authentication. Two-factor authentication requires an individual to verify their identity using two separate methods. One such method, SMS text verification, has become quite popular, due to its convenience and difficulty in mimicking. This recipe will show you how to create two-factor authentication in a Meteor app, using the Twitter OAuth and Twilio SMS services.

Getting ready

Using the Customizing the accounts login recipe found in this chapter, we already have an application that authenticates against Twitter. We will expand that recipe, and add the Twilio SMS service to send a 6-digit verification code for our second authentication challenge. So that we can focus on the authentication part of the recipe, we will set up the Twilio service here rather than in the main recipe.

Creating our baseline application

Please follow the Customizing the accounts...