docs: function(req, localAuth, cb) {
      // "FH_USE_LOCAL_DB" env var determines if the app is running in local mode.
      if (process.env.FH_USE_LOCAL_DB) {
        // In local mode, invoke user function/object
        if (_.isFunction(localAuth)) {
          return localAuth(req, cb);
        } else if (_.isObject(localAuth)) {
          return cb(undefined, localAuth);
        } else {
          return cb(undefined, {status: 200, body: {}});
        }
      } else {
        // In production mode, proxy request back to Core platform.
        return call("admin/authpolicy/auth", req.body, cb);
      }
    }