If I don't use isAuthenticated in the config/policies.js file I do not get this error.
How to apply policies to errors?
Why is 'encryptedPassword' parameter being interpreted as undefined in sails.js project?