import crumb from '@hapi/crumb';
import { config } from "../../config/index.js";
export const configureCrumbPlugin = routeConfig => {
  return {
    plugin: crumb,
    options: {
      logUnauthorized: true,
      enforce: routeConfig?.enforceCsrf ?? config.get('enforceCsrf'),
      cookieOptions: {
        isSecure: config.get('isProduction')
      }
    }
  };
};
//# sourceMappingURL=crumb.js.map