sails-hook-jwt-auth
sails-hook-jwt-auth copied to clipboard
missing policies error
Hi ,
We are starting a new sailsjs project and we have been using sails-hook-jwt-auth (on our local) - . Everything worked perfectly!
I am now trying to deploy the sails app to an ubuntu instance in AWS. switched NODE_ENV to 'production' and started the app with node app.js
At this point the app doesn't start - I am getting the error below :
Unknown policy, "authtoken", referenced in config.policies.
Are you sure that policy exists?
It would be located at: /home/ubuntu/leadcaller.io/api/policies/authtoken.js
note : the small 't' in authtoken (instead of authToken).
Our policies.js looks like this :
module.exports.policies = { '': false, UserController : { '': ['authToken'] }, CampaignController : { '': ['authToken'] }, LeadController : { 'insert': true, 'process' : ['authToken'], 'show' : ['authToken'] }, AuthController : { '': true } };
Thanks for your time and any pointers you might have.
Cheers
Hi, I'll look into this later today and get back to you.
@Robophil Any update on this issue?
Sorry i couldn't reproduce.
Can you share the entire content of policies.js