Meteor-accounts-sms error


#1

Hi

trying to setup meteor-accounts-sms.

This works, SMS received with a code (but nothing added to the DB):

// Send the verification code sms.
Meteor.sendVerificationCode('+12222222222');

But when trying to validate with:

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

I get the following error:

I20150809-16:59:34.399(2)? Exception while invoking method 'login' Error: Bad pattern: unknown pattern type
I20150809-16:59:34.399(2)?     at Error (<anonymous>)
I20150809-16:59:34.400(2)?     at checkSubtree (packages/check/match.js:269:1)
I20150809-16:59:34.400(2)?     at packages/check/match.js:293:1
I20150809-16:59:34.400(2)?     at Function._.each._.forEach (packages/underscore/underscore.js:113:1)
I20150809-16:59:34.400(2)?     at checkSubtree (packages/check/match.js:290:1)
I20150809-16:59:34.400(2)?     at check (packages/check/match.js:32:1)
I20150809-16:59:34.400(2)?     at [object Object].Accounts.sms.configure.Match.OneOf.twilio.from (packages/dispatch:accounts-sms/sms_server.js:15:1)
I20150809-16:59:34.400(2)?     at packages/accounts-base/accounts_server.js:358:1
I20150809-16:59:34.400(2)?     at tryLoginMethod (packages/accounts-base/accounts_server.js:161:1)
I20150809-16:59:34.400(2)?     at runLoginHandlers (packages/accounts-base/accounts_server.js:355:1)

Do you know why?


Meteor Twilio & Accounts SMS