You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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).
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
The text was updated successfully, but these errors were encountered: