Handling securitySet = empty-array

This commit is contained in:
abhijitkane
2018-11-28 21:08:54 +05:30
parent 0d6c9d12eb
commit b73d7c6a94

View File

@@ -458,7 +458,9 @@ module.exports = {
var securityDef,
helper;
if (!securitySet) {
// return noAuth if security set is not defined
// or is an empty array
if (!securitySet || (Array.isArray(securitySet) && securitySet.length === 0)) {
return {
type: 'noauth'
};