dispatch:accounts-sms

v0.0.1-wipPublished 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. WIP -- use at your own risk.

##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('+15556667777');
// Login with the verification code sms.
Meteor.loginWithSms('+15556667777', '1111');