fix: handle unsupported auth mode by returning 'noauth' type

This commit is contained in:
Sanjai Kumar
2024-12-30 11:04:41 +05:30
parent 21f9e80706
commit e9378d7895

View File

@@ -291,8 +291,9 @@ export const exportCollection = (collection) => {
};
}
default: {
console.error('Unsupported auth mode:', itemAuth.mode);
return null;
return {
type: 'noauth'
};
}
}
};