UNPKG

@hicoder/express-auth-server

Version:

Model Driver Development Stack - authentication and authorization server for mongoose and express based application. It can be enabled to work as authentication, user profile managment, and authorization management servers.

8 lines (5 loc) 283 B
const authAccountDef = require('../authn/model.account'); const GetAuthzModuleDef = require('../authz/model.role'); let accScmName = authAccountDef.authn.authUserSchema; const authzDef = GetAuthzModuleDef(accScmName, authAccountDef.schemas[accScmName]); module.exports = authzDef;