Skip to content

lawrentiy/meteor-accounts-sms

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Login with a phone number and verification code sms.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%