Questions tagged [waterlock]

A user authentication/json web token management tool, built for Sails.

19 questions
4
votes
1 answer

Sails.js Waterlock How to override login action (How to write custom login action)

I use Sails.js and Waterlock. In one place, I need to be able to authenticate my user (say) by phone number instead email. In othe place, I shoud have just a unique pin code that will be the only authentication field. I thought that there could be…
Alexander Arutinyants
  • 1,619
  • 2
  • 23
  • 49
4
votes
1 answer

Sails.js Waterlock /auth/register causes error 500

In trying to make Waterlock not to create new user on login. When I set createOnNotFound to false and try to use http://localhost:1337/auth/register?email=a@s.d&password=12345678 to register a new user. I've got 500 error: error: Sending 500…
Alexander Arutinyants
  • 1,619
  • 2
  • 23
  • 49
4
votes
1 answer

can not install waterlock local auth

I am trying to use waterlock for authentication. i have installed waterlock but failing to install waterkick-local-auth. the error message is shown bellow: gyp ERR! build error gyp ERR! stack Error: `make` failed with exit code: 2 gyp ERR! stack …
Rafi Ud Daula Refat
  • 2,187
  • 19
  • 28
3
votes
1 answer

sailsjs waterlock get jwt on login successful and signup with more fields

I am using waterlock for authentication in sailsjs application. Everything is working fine. I need two customization. Here to get token we need to follow two steps. http://example.com/auth/login and then http://example.com/user/jwt . What we need…
Pritam Parua
  • 672
  • 2
  • 8
  • 27
2
votes
1 answer

Sails/Waterlock password reset flow

G'day all, Does anyone have any experience with the Waterlock flow for passsword resets? I've hit a wall which I can see a work-around for, but it seems really in-elegant, so I'm probably missing something. When I send through an auth/reset POST…
Andy Davison
  • 541
  • 4
  • 13
2
votes
0 answers

How can I gain access to the Facebook access_token issued when authenticating with Waterlock for Sails?

I am using Waterlock to authenticate users in my Sails.js backend API for a mobile app that I am building. I think I'm experiencing a bug that isn't allowing me to save additional user data from Facebook such as email, profile picture, friend list,…
2
votes
2 answers

Error: Authentication method waterlock-local-auth could not be found.

I keep getting this error when trying sails lift even after manually running npm install waterlock-local-auth again and again info: Starting app... /backend-api/node_modules/waterlock/lib/methods.js:112 throw error; ^ Error:…
monty_lennie
  • 2,871
  • 2
  • 29
  • 49
2
votes
2 answers

Sails.js Waterlock - Unique username

I am using waterlock for sails.js to manage my users. I want them to have a unique username so I have this in my User.js: module.exports = { autoPk : false, attributes: require('waterlock').models.user.attributes({ id : { type :…
AlexanderF
  • 254
  • 3
  • 11
2
votes
1 answer

waterlock fb auth - registering with authcode

I have an ember-cli app that authenticates against fb using ember-simple-auth and torii. When the process is finished I end up with an authcode. I also have an API built with Node / Sails / Waterlock I thought I would be able to use Waterlock…
user156888
1
vote
1 answer

Waterlock, Sails, Angular JWT token gives 403 from browser

backend: Sails app w/ Waterlock, Waterlock-local-auth frontend: An angular app I'm running into a issue where postman works fine, gets JWT from /user/jwt all good and dandy but whenever I login through the browser and then attempt to hit /user/jwt…
Sunny Patel
  • 578
  • 6
  • 9
1
vote
1 answer

Waterlocks authentication from server side form

I am having a problem with waterlock-local-auth. Basically I've been playing around with waterlock all day trying to figure out how to create a new user (with hashed password and all), and also how to authenticate the user from a form on a server…
Zorthgo
  • 2,857
  • 6
  • 25
  • 37
1
vote
1 answer

Waterlock permission deined

i am new to use waterlock, but when i finished install waterlock using npm install waterlock and then npm install waterlock-local-auth so i go to next step in the doc . but i have result bash: ./node_modules/.bin/waterlock: Permission denied and…
masadi zainul
  • 397
  • 4
  • 14
1
vote
1 answer

Can not Waterlock installation

For API keys i want to use JWT using waterlock. But i can not install waterlock. the error message is showing bellow. npm WARN locking Error: EACCES, open '/home/developer/.npm/_locks/waterlock-96592128476e35c7.lock' npm WARN locking at Error…
Rafi Ud Daula Refat
  • 2,187
  • 19
  • 28
0
votes
1 answer

EnableWaterLock on Apple Watch deprecated are there any alternatives to lock the screen of the watch?

I just saw that WKExtension.shared.EnableWaterLock is now deprecated. I used this method in my workout apps to prevent accidentally tapping the screen and ending the workout etc. Has it been replaced with any other method of locking the screen?
GarySabo
  • 5,806
  • 5
  • 49
  • 124
0
votes
2 answers

Override sails update to return just one object

When I update a model, waterlock .update() always return an array of objects, even if I set on criteria a primaryKey. on my code Ad.update({ id: req.param('id') }, { // desired attributed to be updated }).exec(function(err, updatedRecord) { …
Leo
  • 1,051
  • 2
  • 13
  • 33
1
2