DEV Community

Discussion on: What I learned on my own | Implementing JWT Authentication on SailsJS (v1)

Collapse
 
pragathyt95 profile image
pragathyt95

sails generate policy isAuthenticated

When i tried the above command, i got the following error:

error: No generator called policy found.
Did you mean sails generate api policy?

Tip: Want to use a custom or community generator?
Add it to your app's .sailsrc file under modules:
You can use a relative path:

"modules": {
  "policy": "./generators/policy"
}

Or the name of an NPM package:

"modules": {
  "policy": "sails-generate-react-component"
}

For help, see:
sailsjs.com/docs/concepts/extendin...

Collapse
 
christopheek profile image
Christophe El-Khoury • Edited

Thank you for the feedback!
At the time of this article, I was relying on Sails' Documentation, which currently takes us to a dead link. So it could be that it's changed. I've posted a comment with the updates

Thank you again!