UNPKG

dce-expresskit

Version:

Shared functions, helpers, and tools for Harvard DCE Express-based servers

20 lines (17 loc) 537 B
// Import dce-mango import { Collection as MangoCollection } from 'dce-mango'; /** * Initialize a cross-server credential collection given the dce-mango Collection class * @author Gabe Abrams * @param Collection the Collection class from dce-mango * @returns initialized logCollection */ const initCrossServerCredentialCollection = (Collection: typeof MangoCollection) => { return new Collection( 'CrossServerCredential', { uniqueIndexKey: 'key', }, ); }; export default initCrossServerCredentialCollection;