module.exports = {
  contextToGroups: ({ securityContext }) => securityContext?.auth?.groups || ['*'],

  // Same app ID for all tenants so they share a CompilerApi instance
  contextToAppId: () => 'CUBEJS_APP_shared',
};
