samjs-mongo-auth
Adds authorization system for samjs-mongo.
Getting Started
npm install --save samjs-mongo-auth
Usage
samjsplugins // samjs-auth and samjs-mongo are needed before samjs-mongo-auth options
authOptions
name | type | default | description |
---|---|---|---|
insertable | boolean | true | allows user to create documents even when access to parts of it are forbidden |
deletable | boolean | false | allows user to delete documents even when access to parts of it are forbidden |