Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
authentication: { item: req.user, listKey: req.authedListKey },
fieldKey,
listKey,
gqlName,
itemId,
itemIds,
});
}
);
}
return {
schemaName,
startAuthedSession: ({ item, list }, audiences) =>
startAuthedSession(req, { item, list }, audiences, this._cookieSecret),
endAuthedSession: endAuthedSession.bind(null, req),
authedItem: req.user,
authedListKey: req.authedListKey,
getCustomAccessControlForUser,
getListAccessControlForUser,
getFieldAccessControlForUser,
totalResults: 0,
maxTotalResults: this.queryLimits.maxTotalResults,
};
}