okland / accounts-phone Goto Github PK
View Code? Open in Web Editor NEWA login service based on mobile phone number for Meteor
A login service based on mobile phone number for Meteor
Thanks for making this package -- it's working really well so far.
Question: Is there a way to return more descriptive errors to the client? For example, requestPhoneVerification
, which is only callable from the client, throws a descriptive error on the server (Error: Too often retries, try again in 15 seconds.
), but all the client sees is a 500 Meteor Error.
Thanks again.
meteor add okland:accounts-phone
=> Errors while adding packages:
While selecting package versions:
error: Conflict: Constraint npm-bcrypt@=0.7.7 is not satisfied by npm-bcrypt 0.7.8_2.
Constraints on package "npm-bcrypt":
Hello,
We are currently using users phone number and an SMS with verification code as the method of login within our app.
For a few phone numbers we have setup a ‘phoneVerificationMasterCode’, so that those users are always able to login, even if they have not received an SMS. We do this by providing the following in the settings.json
"accounts-phone": {
"verificationWaitTime": 0,
"verificationRetriesWaitTime": 0,
"adminPhoneNumbers": [“+##########”, "+##########","+##########","+##########","+##########"],
"phoneVerificationMasterCode": "1111”
}
As SMS service we are using Plivo. However it seems that the above configuration is not working. With any of the numbers that are registered there, they are not able to user the verification code (1111) as provided in the settings.
Has anyone experience this? Or is aware of what might be the issue?
Thanks in advance.
I need enable user profile editing, but in phone_server.js row number 630, there is a function that disable user profile editing:
/** Disable user profile editing **/
Meteor.users.deny({
update: function () {
return true;
}
});
Any Idea?
Hi,
I was using this library and when I had to clear out and rebuild my app, I got this error while trying to reload all the dependencies.
While checking for okland:[email protected]:
error: No compatible binary build found for this package. Contact the package author and ask them to publish it for your platform.
Any idea how to get past this?
Thanks,
Erick
Hi!
Accounts.verifyPhone(tel, userCode, function(){}); works from the desktop, but not from the device.
I see that the user is validated and logged in on the device, but the 'verified' parameter is not set in the DB.
Am I doing something wrong?
Thanks
Michael
Hey, Your package is really of great help, I just had a small issue.
Whenever i try to verify a phone number using the verifyPhone() method, it returns an error in the callback with error 403 saying not a valid code and the user in not logged in instead he is logged out ( I actually logged the user in and then based on whether the phone is verified or not i show him the verification page or home screen).
But after this execution, if i check the database, the user phone is verified and the next time the user logs in, he is directly shown the home page not the verification page.
Any help would be appreciated.
Hello,
Thanks got the great package.
I used the package in my development machine and everything worked fine.
But when i deployed it to heroku, the deployment process was successful but the app shows and error.
On checking the logs, i get the error as
2016-09-26T04:16:11.541017+00:00 app[web.1]: /app/.meteor/heroku_build/app/programs/server/node_modules/fibers/future.js:280
2016-09-26T04:16:11.541033+00:00 app[web.1]: throw(ex);
2016-09-26T04:16:11.541034+00:00 app[web.1]: ^
2016-09-26T04:16:11.541039+00:00 app[web.1]:
2016-09-26T04:16:11.541039+00:00 app[web.1]: TypeError: Cannot read property 'meteor' of undefined
2016-09-26T04:16:11.541040+00:00 app[web.1]: at /app/.meteor/heroku_build/app/programs/server/packages/okland_accounts-phone.js:4:21
2016-09-26T04:16:11.541041+00:00 app[web.1]: at /app/.meteor/heroku_build/app/programs/server/packages/okland_accounts-phone.js:888:3
2016-09-26T04:16:11.541042+00:00 app[web.1]: at /app/.meteor/heroku_build/app/programs/server/boot.js:297:10
2016-09-26T04:16:11.541042+00:00 app[web.1]: at Array.forEach (native)
2016-09-26T04:16:11.541043+00:00 app[web.1]: at Function._.each._.forEach (/app/.meteor/heroku_build/app/programs/server/node_modules/underscore/underscore.js:79:11)
2016-09-26T04:16:11.541044+00:00 app[web.1]: at /app/.meteor/heroku_build/app/programs/server/boot.js:133:5
I checked the file accounts-phone.js to find out that the global variable Package is not defined
(function () {
/* Imports */
**var Meteor = Package.meteor.Meteor;**
var global = Package.meteor.global;
var meteorEnv = Package.meteor.meteorEnv;
var NpmModuleBcrypt = Package['npm-bcrypt'].NpmModuleBcrypt;
var Accounts = Package['accounts-base'].Accounts;
help me with this issue as i have to deploy the app as per the deadline.
Thanks in advance
This package is not compatible for meteor 1.5, kindly update the package.
I am getting this error while adding:
=> Errors while adding packages:
While checking for okland:[email protected]:
error: No compatible binary build found for this package. Contact the package
author and ask them to publish it for your platform.
I know there's closed issue with this symptoms, but my SID is correct and there's stil an error:
I20151027-06:46:27.155(1)? Exception in callback of async function: Error: [object Object] [Error sending SMS ]
I20151027-06:46:27.157(1)? at packages/okland_accounts-phone/packages/okland_accounts-phone.js:81:1
I20151027-06:46:27.157(1)? at runWithEnvironment (packages/meteor/dynamics_nodejs.js:110:1)
Sorry to be a nag but...it bugs me. "Meteor" is misspelled in the repo description. 💡
=> Errors while initializing project:
While checking for okland:[email protected]:
error: No compatible binary build found for this package. Contact the package author and ask them to publish it for your platform.
TypeError: Object [object Object] has no method 'loginWithPhoneAndPassword'
Hi,
Im. running a mobile app with this package. I can login without any issues in desktop browser, however it fails to find the login method in mobile device when i use module run android-device
TypeError: Object [object Object] has no method 'loginWithPhoneAndPassword'
at Scope.$scope.login (http://localhost:12544/__cordova/app/app.js?hash=82cbf6ab5317af7efec9c7ea3c17526bebf8f9a6:826:14)
at fn (eval at (http://localhost:12544/__cordova/packages/angular_angular.js?hash=73c8bcda9a1c9e883cf9771937278c968a815c22:13390:15), :4:206)
at callback (http://localhost:12544/__cordova/packages/angular_angular.js?hash=73c8bcda9a1c9e883cf9771937278c968a815c22:23638:17)
at Scope.$eval (http://localhost:12544/__cordova/packages/angular_angular.js?hash=73c8bcda9a1c9e883cf9771937278c968a815c22:16077:28)
at Scope.$apply (http://localhost:12544/__cordova/packages/angular_angular.js?hash=73c8bcda9a1c9e883cf9771937278c968a815c22:16177:25)
at HTMLButtonElement. (http://localhost:12544/__cordova/packages/angular_angular.js?hash=73c8bcda9a1c9e883cf9771937278c968a815c22:23643:23)
at HTMLButtonElement.jQuery.event.dispatch (http://localhost:12544/__cordova/packages/jquery.js?hash=e15504227515793c40a6a3a8ad340399cb657500:5282:27)
at HTMLButtonElement.elemData.handle (http://localhost:12544/__cordova/packages/jquery.js?hash=e15504227515793c40a6a3a8ad340399cb657500:4934:28) angular_angular.js?hash=73c8bcda9a1c9e883cf9771937278c968a815c22:12545
Hi I am getting the following error trying to add accounts-phone to my project.
While checking for okland:[email protected]:
error: No compatible binary build found for this package. Contact the package author and ask them to publish it for your platform.
My platform: Mac OSX
Can you please have a new build?
Thanks
It would be good to have a server side callback available to call on create user so we can add additional information to user profile.
Personally I would like to store country code separate from the rest of the phone number when user is created but I would be happy to add it as redundant information using a post-create server callback to create user.
This is quiet helpful when you want to attach a default country code to friend list for the friends in contacts with a missing country code in their phone number.
Is there any way to assume the identity of another user? Something akin to the built-in Meteor accounts system's setUserId. Admins are asking to be able to troubleshoot as-if they were another user.
We sometimes see this error -- any thoughts?
Exception while invoking method 'requestPhoneVerification' MongoError: E11000 duplicate key error index: mydb.users.$services.phone.verify.code_1 dup key: { : "1699" }
Hi,
Exist a app sample?
thanks
[SOLVED]
$ meteor add okland:accounts-phone
=> Errors while adding packages:
While loading package [email protected]_2:
error: Command failed:
/Users/cmal/.meteor/packages/meteor-tool/.1.4.1.7bxam++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/bin/npm
rebuild --no-bin-links --update-binary
../src/bcrypt_node.cc:54:18: error: no member named 'Dispose' in 'v8::Persistent<v8::Function,
v8::NonCopyablePersistentTraitsv8::Function >'
callback.Dispose();
../src/bcrypt_node.cc:128:19: error: unknown type name 'uv_work_t'
void GenSaltAsync(uv_work_t* req) {
^
../src/bcrypt_node.cc:137:24: error: unknown type name 'uv_work_t'
void GenSaltAsyncAfter(uv_work_t* req) {
^
../src/bcrypt_node.cc:138:17: error: calling a protected constructor of class
'v8::HandleScope'
HandleScope scope;
^
/Users/cmal/.node-gyp/4.5.0/include/node/v8.h:885:13: note: declared protected here
V8_INLINE HandleScope() {}
^
../src/bcrypt_node.cc:146:44: error: no member named 'New' in 'v8::String'
argv[0] = Exception::Error(String::New(baton->error.c_str()));
~~~~~~~~^
../src/bcrypt_node.cc:147:19: error: no matching function for call to 'Undefined'
argv[1] = Undefined();
^~~~~~~~~
/Users/cmal/.node-gyp/4.5.0/include/node/v8.h:315:27: note: candidate function not viable:
requires single argument 'isolate', but no arguments were provided
friend Local<Primitive> Undefined(Isolate* isolate);
^
../src/bcrypt_node.cc:150:19: error: no matching function for call to 'Undefined'
argv[0] = Undefined();
^~~~~~~~~
/Users/cmal/.node-gyp/4.5.0/include/node/v8.h:315:27: note: candidate function not viable:
requires single argument 'isolate', but no arguments were provided
friend Local<Primitive> Undefined(Isolate* isolate);
^
../src/bcrypt_node.cc:151:19: warning: 'Encode' is deprecated: Use Encode(isolate, ...)
[-Wdeprecated-declarations]
argv[1] = Encode(baton->salt.c_str(), baton->salt.size(), BINARY);
^
/Users/cmal/.node-gyp/4.5.0/include/node/node.h:300:45: note: 'Encode' has been explicitly marked
deprecated here
inline v8::Local<v8::Value> Encode(
^
../src/bcrypt_node.cc:156:20: error: member reference type 'v8::Persistent<v8::Function>' is not a
pointer; did you mean to use '.'?
baton->callback->Call(Context::GetCurrent()->Global(), 2, argv);
~~~~~~~~~~~~~~~^~
.
../src/bcrypt_node.cc:156:22: error: no member named 'Call' in 'v8::Persistent<v8::Function,
v8::NonCopyablePersistentTraits<v8::Function> >'
baton->callback->Call(Context::GetCurrent()->Global(), 2, argv);
~~~~~~~~~~~~~~~ ^
../src/bcrypt_node.cc:156:36: error: no member named 'GetCurrent' in 'v8::Context'
baton->callback->Call(Context::GetCurrent()->Global(), 2, argv);
~~~~~~~~~^
../src/bcrypt_node.cc:159:9: warning: 'FatalException' is deprecated: Use FatalException(isolate,
...) [-Wdeprecated-declarations]
FatalException(try_catch);
^
/Users/cmal/.node-gyp/4.5.0/include/node/node.h:284:29: note: 'FatalException' has been explicitly
marked deprecated here
inline void FatalException(const v8::TryCatch& try_catch) {
^
../src/bcrypt_node.cc:164:34: error: unknown type name 'Arguments'; did you mean
'v8::internal::Arguments'?
Handle<Value> GenerateSalt(const Arguments &args) {
^~~~~~~~~
v8::internal::Arguments
/Users/cmal/.node-gyp/4.5.0/include/node/v8.h:139:7: note: 'v8::internal::Arguments' declared here
class Arguments;
^
../src/bcrypt_node.cc:165:17: error: calling a protected constructor of class
'v8::HandleScope'
HandleScope scope;
^
/Users/cmal/.node-gyp/4.5.0/include/node/v8.h:885:13: note: declared protected here
V8_INLINE HandleScope() {}
^
../src/bcrypt_node.cc:167:13: error: member access into incomplete type 'const
v8::internal::Arguments'
if (args.Length() < 3) {
^
/Users/cmal/.node-gyp/4.5.0/include/node/v8.h:139:7: note: forward declaration of
'v8::internal::Arguments'
class Arguments;
^
../src/bcrypt_node.cc:168:60: error: no member named 'New' in 'v8::String'
return ThrowException(Exception::TypeError(String::New("3 arguments
expected")));
~~~~~~~~^
../src/bcrypt_node.cc:171:34: error: type 'const v8::internal::Arguments' does not provide a
subscript operator
if (!Buffer::HasInstance(args[1]) || Buffer::Length(args[1].As<Object>()) != 16)
{
~~~~^~
../src/bcrypt_node.cc:171:61: error: type 'const v8::internal::Arguments' does not provide a
subscript operator
if (!Buffer::HasInstance(args[1]) || Buffer::Length(args[1].As<Object>()) != 16)
{
~~~~^~
../src/bcrypt_node.cc:171:68: error: 'Object' does not refer to a value
if (!Buffer::HasInstance(args[1]) || Buffer::Length(args[1].As<Object>()) != 16)
{
^
/Users/cmal/.node-gyp/4.5.0/include/node/v8.h:2587:17: note: declared here
class V8_EXPORT Object : public Value {
^
../src/bcrypt_node.cc:171:76: error: expected expression
if (!Buffer::HasInstance(args[1]) || Buffer::Length(args[1].As<Object>()) != 16)
{
^
../src/bcrypt_node.cc:172:60: error: no member named 'New' in 'v8::String'
return ThrowException(Exception::TypeError(String::New("Second argument must be a 16 byte
Buffer")));
~~~~~~~~^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
2 warnings and 20 errors generated.
make: *** [Release/obj.target/bcrypt_lib/src/bcrypt_node.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit
(/Users/cmal/.meteor/packages/meteor-tool/.1.4.1.7bxam++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/lib/node_modules/node-gyp/lib/build.js:276:23)
gyp ERR! stack at emitTwo (events.js:87:13)
gyp ERR! stack at ChildProcess.emit (events.js:172:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
gyp ERR! System Darwin 15.6.0
gyp ERR! command
"/Users/cmal/.meteor/packages/meteor-tool/.1.4.1.7bxam++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/bin/node"
"/Users/cmal/.meteor/packages/meteor-tool/.1.4.1.7bxam++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js"
"rebuild"
gyp ERR! cwd
/Users/cmal/.meteor/packages/npm-bcrypt/.0.7.8_2.1m79ix6++os.osx.x86_64+web.browser+web.cordova/npm/node_modules/.temp-12v05xx/node_modules/bcrypt
gyp ERR! node -v v4.5.0
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok
npm ERR! Darwin 15.6.0
npm ERR! argv
"/Users/cmal/.meteor/packages/meteor-tool/.1.4.1.7bxam++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/bin/node"
"/Users/cmal/.meteor/packages/meteor-tool/.1.4.1.7bxam++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/bin/npm"
"rebuild" "--no-bin-links" "--update-binary"
npm ERR! node v4.5.0
npm ERR! npm v3.10.6
npm ERR! code ELIFECYCLE
npm ERR! [email protected] install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script 'node-gyp rebuild'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the bcrypt package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs bcrypt
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls bcrypt
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR!
/Users/cmal/.meteor/packages/npm-bcrypt/.0.7.8_2.1m79ix6++os.osx.x86_64+web.browser+web.cordova/npm/node_modules/.temp-12v05xx/npm-debug.log
../src/bcrypt_node.cc:54:18: error: no member named 'Dispose' in 'v8::Persistent<v8::Function,
v8::NonCopyablePersistentTraits<v8::Function> >'
callback.Dispose();
~~~~~~~~ ^
../src/bcrypt_node.cc:128:19: error: unknown type name 'uv_work_t'
void GenSaltAsync(uv_work_t* req) {
^
../src/bcrypt_node.cc:137:24: error: unknown type name 'uv_work_t'
void GenSaltAsyncAfter(uv_work_t* req) {
^
../src/bcrypt_node.cc:138:17: error: calling a protected constructor of class
'v8::HandleScope'
HandleScope scope;
^
/Users/cmal/.node-gyp/4.5.0/include/node/v8.h:885:13: note: declared protected here
V8_INLINE HandleScope() {}
^
../src/bcrypt_node.cc:146:44: error: no member named 'New' in 'v8::String'
argv[0] = Exception::Error(String::New(baton->error.c_str()));
~~~~~~~~^
../src/bcrypt_node.cc:147:19: error: no matching function for call to 'Undefined'
argv[1] = Undefined();
^~~~~~~~~
/Users/cmal/.node-gyp/4.5.0/include/node/v8.h:315:27: note: candidate function not viable:
requires single argument 'isolate', but no arguments were provided
friend Local<Primitive> Undefined(Isolate* isolate);
^
../src/bcrypt_node.cc:150:19: error: no matching function for call to 'Undefined'
argv[0] = Undefined();
^~~~~~~~~
/Users/cmal/.node-gyp/4.5.0/include/node/v8.h:315:27: note: candidate function not viable:
requires single argument 'isolate', but no arguments were provided
friend Local<Primitive> Undefined(Isolate* isolate);
^
../src/bcrypt_node.cc:151:19: warning: 'Encode' is deprecated: Use Encode(isolate, ...)
[-Wdeprecated-declarations]
argv[1] = Encode(baton->salt.c_str(), baton->salt.size(), BINARY);
^
/Users/cmal/.node-gyp/4.5.0/include/node/node.h:300:45: note: 'Encode' has been explicitly marked
deprecated here
inline v8::Local<v8::Value> Encode(
^
../src/bcrypt_node.cc:156:20: error: member reference type 'v8::Persistent<v8::Function>' is not a
pointer; did you mean to use '.'?
baton->callback->Call(Context::GetCurrent()->Global(), 2, argv);
~~~~~~~~~~~~~~~^~
.
../src/bcrypt_node.cc:156:22: error: no member named 'Call' in 'v8::Persistent<v8::Function,
v8::NonCopyablePersistentTraits<v8::Function> >'
baton->callback->Call(Context::GetCurrent()->Global(), 2, argv);
~~~~~~~~~~~~~~~ ^
../src/bcrypt_node.cc:156:36: error: no member named 'GetCurrent' in 'v8::Context'
baton->callback->Call(Context::GetCurrent()->Global(), 2, argv);
~~~~~~~~~^
../src/bcrypt_node.cc:159:9: warning: 'FatalException' is deprecated: Use FatalException(isolate,
...) [-Wdeprecated-declarations]
FatalException(try_catch);
^
/Users/cmal/.node-gyp/4.5.0/include/node/node.h:284:29: note: 'FatalException' has been explicitly
marked deprecated here
inline void FatalException(const v8::TryCatch& try_catch) {
^
../src/bcrypt_node.cc:164:34: error: unknown type name 'Arguments'; did you mean
'v8::internal::Arguments'?
Handle<Value> GenerateSalt(const Arguments &args) {
^~~~~~~~~
v8::internal::Arguments
/Users/cmal/.node-gyp/4.5.0/include/node/v8.h:139:7: note: 'v8::internal::Arguments' declared here
class Arguments;
^
../src/bcrypt_node.cc:165:17: error: calling a protected constructor of class
'v8::HandleScope'
HandleScope scope;
^
/Users/cmal/.node-gyp/4.5.0/include/node/v8.h:885:13: note: declared protected here
V8_INLINE HandleScope() {}
^
../src/bcrypt_node.cc:167:13: error: member access into incomplete type 'const
v8::internal::Arguments'
if (args.Length() < 3) {
^
/Users/cmal/.node-gyp/4.5.0/include/node/v8.h:139:7: note: forward declaration of
'v8::internal::Arguments'
class Arguments;
^
../src/bcrypt_node.cc:168:60: error: no member named 'New' in 'v8::String'
return ThrowException(Exception::TypeError(String::New("3 arguments
expected")));
~~~~~~~~^
../src/bcrypt_node.cc:171:34: error: type 'const v8::internal::Arguments' does not provide a
subscript operator
if (!Buffer::HasInstance(args[1]) || Buffer::Length(args[1].As<Object>()) != 16)
{
~~~~^~
../src/bcrypt_node.cc:171:61: error: type 'const v8::internal::Arguments' does not provide a
subscript operator
if (!Buffer::HasInstance(args[1]) || Buffer::Length(args[1].As<Object>()) != 16)
{
~~~~^~
../src/bcrypt_node.cc:171:68: error: 'Object' does not refer to a value
if (!Buffer::HasInstance(args[1]) || Buffer::Length(args[1].As<Object>()) != 16)
{
^
/Users/cmal/.node-gyp/4.5.0/include/node/v8.h:2587:17: note: declared here
class V8_EXPORT Object : public Value {
^
../src/bcrypt_node.cc:171:76: error: expected expression
if (!Buffer::HasInstance(args[1]) || Buffer::Length(args[1].As<Object>()) != 16)
{
^
../src/bcrypt_node.cc:172:60: error: no member named 'New' in 'v8::String'
return ThrowException(Exception::TypeError(String::New("Second argument must be a 16 byte
Buffer")));
~~~~~~~~^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
2 warnings and 20 errors generated.
make: *** [Release/obj.target/bcrypt_lib/src/bcrypt_node.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit
(/Users/cmal/.meteor/packages/meteor-tool/.1.4.1.7bxam++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/lib/node_modules/node-gyp/lib/build.js:276:23)
gyp ERR! stack at emitTwo (events.js:87:13)
gyp ERR! stack at ChildProcess.emit (events.js:172:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
gyp ERR! System Darwin 15.6.0
gyp ERR! command
"/Users/cmal/.meteor/packages/meteor-tool/.1.4.1.7bxam++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/bin/node"
"/Users/cmal/.meteor/packages/meteor-tool/.1.4.1.7bxam++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js"
"rebuild"
gyp ERR! cwd
/Users/cmal/.meteor/packages/npm-bcrypt/.0.7.8_2.1m79ix6++os.osx.x86_64+web.browser+web.cordova/npm/node_modules/.temp-12v05xx/node_modules/bcrypt
gyp ERR! node -v v4.5.0
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok
npm ERR! Darwin 15.6.0
npm ERR! argv
"/Users/cmal/.meteor/packages/meteor-tool/.1.4.1.7bxam++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/bin/node"
"/Users/cmal/.meteor/packages/meteor-tool/.1.4.1.7bxam++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/bin/npm"
"rebuild" "--no-bin-links" "--update-binary"
npm ERR! node v4.5.0
npm ERR! npm v3.10.6
npm ERR! code ELIFECYCLE
npm ERR! [email protected] install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script 'node-gyp rebuild'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the bcrypt package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs bcrypt
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls bcrypt
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR!
/Users/cmal/.meteor/packages/npm-bcrypt/.0.7.8_2.1m79ix6++os.osx.x86_64+web.browser+web.cordova/npm/node_modules/.temp-12v05xx/npm-debug.log
Hi, our client is very strict when it comes to licensing and you have not included one in your package which means that you retain all rights to your source code and that nobody else may reproduce, distribute, or create derivative works from your work according to this gitHub article https://help.github.com/articles/open-source-licensing/
Could you please include license e.g. MIT ?
I20150827-20:05:10.205(8)? Exception while invoking method 'login' Error: Match error: Unknown key in field phone in field user.phone
I20150827-20:05:10.205(8)? at packages/check/match.js:299:1
I20150827-20:05:10.205(8)? at Function..each..forEach (packages/underscore/underscore.js:113:1)
I20150827-20:05:10.205(8)? at checkSubtree (packages/check/match.js:290:1)
I20150827-20:05:10.206(8)? at check (packages/check/match.js:32:1)
I20150827-20:05:10.206(8)? at [object Object].condition (packages/accounts-password/password_server.js:111:1)
I20150827-20:05:10.206(8)? at checkSubtree (packages/check/match.js:220:1)
I20150827-20:05:10.206(8)? at packages/check/match.js:293:1
I20150827-20:05:10.206(8)? at Function..each..forEach (packages/underscore/underscore.js:113:1)
I20150827-20:05:10.206(8)? at checkSubtree (packages/check/match.js:290:1)
I20150827-20:05:10.207(8)? at check (packages/check/match.js:32:1)
I20150827-20:05:10.207(8)? at [object Object].Accounts.registerLoginHandler.check.user (packages/accounts-password/password_server.js:144:1)
I20150827-20:05:10.207(8)? at packages/accounts-base/accounts_server.js:358:1
I20150827-20:05:10.207(8)? at tryLoginMethod (packages/accounts-base/accounts_server.js:161:1)
I20150827-20:05:10.207(8)? at runLoginHandlers (packages/accounts-base/accounts_server.js:355:1)
I20150827-20:05:10.207(8)? at [object Object].Meteor.methods.login (packages/accounts-base/accounts_server.js:409:1)
I20150827-20:05:10.208(8)? at maybeAuditArgumentChecks (packages/ddp/livedata_server.js:1617:1)
In file password_server.js of package accounts-password:
only one of id,username and email allowed!
Thanks for this module.
I am running meteor 1.2.0 and I keep getting this error when using the requestPhoneVerification function on the client. The mobile number is valid and it only contains +, the country code and the mobile number following it(no dashes).
Exception in callback of async function: Error: [object Object] [Error sending SMS ]
I20151006-17:15:24.277(8)? at packages/okland_accounts-phone/packages/okland_accounts-phone.js:81:1
I20151006-17:15:24.278(8)? at runWithEnvironment (packages/meteor/dynamics_nodejs.js:108:1)
Hi
I wanted to test out the upcoming Meteor 1.3 (currently at rc2) but ran into a very weird issue where just this package was throwing an error during the build process
W20160316-11:44:36.113(1)? (STDERR) /Users/xxx/.meteor/packages/meteor-tool/.1.2.4-rc.2.120nk3i++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/server-lib/node_modules/fibers/future.js:267
W20160316-11:44:36.113(1)? (STDERR) throw(ex);
W20160316-11:44:36.113(1)? (STDERR) ^
W20160316-11:44:36.184(1)? (STDERR) TypeError: Cannot read property 'meteor' of undefined
W20160316-11:44:36.185(1)? (STDERR) at /Users/xxx/app/.meteor/local/build/programs/server/packages/okland_accounts-phone.js:4:21
W20160316-11:44:36.185(1)? (STDERR) at /Users/xxx/app/.meteor/local/build/programs/server/packages/okland_accounts-phone.js:872:3
W20160316-11:44:36.185(1)? (STDERR) at /Users/xxx/app/.meteor/local/build/programs/server/boot.js:281:10
W20160316-11:44:36.185(1)? (STDERR) at Array.forEach (native)
W20160316-11:44:36.185(1)? (STDERR) at Function._.each._.forEach (/Users/xxx/.meteor/packages/meteor-tool/.1.2.4-rc.2.120nk3i++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/server-lib/node_modules/underscore/underscore.js:79:11)
W20160316-11:44:36.185(1)? (STDERR) at /Users/xxx/app/.meteor/local/build/programs/server/boot.js:133:5
W20160316-11:44:38.977(1)? (STDERR)
W20160316-11:44:38.978(1)? (STDERR) /Users/xxx/.meteor/packages/meteor-tool/.1.2.4-rc.2.120nk3i++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/server-lib/node_modules/fibers/future.js:267
The beginning of the source of the built okland_accounts-phone.js file looks like this:
(function () {
/* Imports */
var Meteor = Package.meteor.Meteor;
var global = Package.meteor.global;
var meteorEnv = Package.meteor.meteorEnv;
...
So it seems it doesn't have Package
available in the global scope at this stage, which is weird because all the other packages have the same header in their built files. So it might be a loading order issue or something.
Removing just this package fixes my app after which it runs fine in 1.3
Anybody have any ideas?
Thanks for this package, we can build a simple phone account system. but I think there should be some server side helpers like add phones and remove phones to help build more flexible system.
Not compatible with Meteor 1.6 or 1.8
Hi there, I am using the package and I find it very helpful so far, thank you very much for it.
I'm wondering if you could make user-login an optional action in verifyPhone method? I want to show users a welcome page after they successfully register, but currently I can't do it because the verifyPhone function will bring them directly into the main page.
Thanks!
Yichen
=> Errors prevented startup:
While checking for okland:[email protected]:
error: No compatible binary build found for this package. Contact the package author and ask them to publish it for your platform.
Errors while adding pacakge
While loading package [email protected]_2:
error: Command failed: /home/username/.meteor/packages/meteor-tool/.1.4.1_1.139xb76++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/bin/npm
rebuild --no-bin-links --update-binary
../src/bcrypt_node.cc: In destructor ‘virtual {anonymous}::baton_base::~baton_base()’:
../src/bcrypt_node.cc:54:18: error: ‘class v8::Persistent<v8::Function>’ has no member named ‘Dispose’
callback.Dispose();
OS : ubuntu 16.04
npm : 3.5.2
nodejs : 4.2.6
meteor : 1.4.1.1
I am currently new to meteor as well as ionic 2 but I have created a todos app I just want to access the same app from my laptop when I do that the phone app stops responding....
Hi,
As soon as I installed the library I received the following error in the running meteor instance:
W20150218-15:27:04.894(5.5)? (STDERR) Error: A method named 'createUser' is already defined
W20150218-15:27:04.894(5.5)? (STDERR) at packages/ddp/livedata_server.js:1444:1
W20150218-15:27:04.895(5.5)? (STDERR) at Function..each..forEach (packages/underscore/underscore.js:113:1)
W20150218-15:27:04.895(5.5)? (STDERR) at [object Object]._.extend.methods (packages/ddp/livedata_server.js:1442:1)
W20150218-15:27:04.895(5.5)? (STDERR) at Package (packages/okland:accounts-phone/phone_server.js:543:1)
Please let me know how I can fix this.
Thanks,
Abhishek
We're using Accounts.createUserWithPhone
server-side so we can wrap it with necessary permission checks, add the user to necessary roles post-create, and so on.
Simplified a little, our Meteor method pretty much boils down to this:
createUser: function(user) {
check(user, Object);
// assign a random password if none was specified
if (!user.password) {
user.password = Random.id();
}
// default profile.offers to true
user.profile.offers = true;
var id = Accounts.createUserWithPhone(user); // no callback on server
Roles.addUsersToRoles(id, 'users');
// can't return the _id, breaks the phone package callback
}
The documentation says no callback on the server.
For grins I wrapped createUserWithPhone
in a try/catch and logged out the _id
.
try {
var id = Accounts.createUserWithPhone(user); // no callback on server
} catch(e) {
console.log("problem creating user: ", e);
}
console.log("User Created, _id: ", id);
I am seeing a lot of undefined
values.
root@mycoolserver:/var/log# cat mycoolapp.log | grep "User Created"
User Created, _id: oftMAFFEhh2jdK9bc
User Created, _id: undefined
User Created, _id: undefined
User Created, _id: undefined
User Created, _id: undefined
User Created, _id: xCj2HuMSS5rBSABuP
User Created, _id: undefined
User Created, _id: undefined
User Created, _id: 3rh5ti2Q8W6kcsrdM
User Created, _id: 7E5iBBi2hKN8bfvJG
User Created, _id: oBN6HJAk5Yh6pZEox
User Created, _id: undefined
User Created, _id: undefined
Any thoughts?
Would there be any reason not to be able to use the create account method on an existing user to send a new code that the user can log in with? This would avoid saving a password and as long as the login token remains valid for a while the user won't be hassled with using their phone constantly.
Using create account this way seems bad practice but I'm curious to see what you all think
When used with accounts-password, login using loginWithPassword as an alternative does not work.
Using Angular-Meteor 1.3.2 with Meteor-client-side.
I think, many should prefer both login methods as an option for user.
I get following message on server side
Exception while invoking method 'login' Error: Match error: Match error: Unknown key in field email in field user.email
I20151231-10:21:01.508(2)? at check (packages/check/match.js:33:1)
I20151231-10:21:01.508(2)? at [object Object].Accounts.registerLoginHandler.check.user (packages/okland_accounts-phone/packages/okland_accounts-phone.js:274:1)
I20151231-10:21:01.509(2)? at accounts_server.js:462:32
I20151231-10:21:01.509(2)? at tryLoginMethod (accounts_server.js:239:14)
I20151231-10:21:01.510(2)? at AccountsServer.Ap.runLoginHandlers (accounts_server.js:459:18)
I20151231-10:21:01.510(2)? at [object Object].methods.login (accounts_server.js:522:27)
I20151231-10:21:01.510(2)? at maybeAuditArgumentChecks (livedata_server.js:1698:12)
I20151231-10:21:01.510(2)? at livedata_server.js:708:19
I20151231-10:21:01.511(2)? at [object Object]..extend.withValue (packages/meteor/dynamics_nodejs.js:56:1)
I20151231-10:21:01.511(2)? at livedata_server.js:706:40
I20151231-10:21:01.512(2)? Sanitized and reported to the client as: Match failed [400]
I20151231-10:21:01.512(2)?
On the client side
_Error: string.charCodeAt is not a function. (In 'string.charCodeAt(n)', 'string.charCodeAt' is undefined)
Utf8Encode@http://localhost:8100/lib/accounts-password-client-side.bundle.min.js:1:2442
SHA256@http://localhost:8100/lib/accounts-password-client-side.bundle.min.js:1:2985
hashPassword@http://localhost:8100/lib/accounts-password-client-side.bundle.min.js:1:27418
loginWithPassword@http://localhost:8100/lib/accounts-password-client-side.bundle.min.js:1:27073
http://localhost:8100/lib/angular-meteor-1.3.2/dist/angular-meteor.bundle.js:10912:24
Hello
While adding package getting error.
While checking for okland:[email protected]:
error: No compatible binary build found for this package. Contact the package author and ask them to publish it for your platform.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.