dispatch:accounts-sms

v1.0.1Published 10 years ago

This package has not had recent updates. Please investigate it's current state before committing to using it in your project.

accounts-sms

Allow users to login with their phone number.

##Usage

meteor add dispatch:accounts-sms

Server

// Configure to use twilio.
Accounts.sms.configure({
  twilio: {
    from: Meteor.settings.TWILIO.FROM,
    sid: Meteor.settings.TWILIO.SID,
    token: Meteor.settings.TWILIO.TOKEN
  }
});

Client

// Send the verification code sms.
Meteor.sendVerificationCode('+12222222222');
// Login with the verification code sms.
Meteor.loginWithSms('+12222222222', '2222');