import { importShared } from './__federation_fn_import-C_QCk5FX.js';
import { c as createPlaceholderAuthPluginDefinitionSchema, P as PLACEHOLDER_AUTH_MODELS } from './plugin-definition-QRBMcFiG.js';

const {authModelConfigSpec,createPlatformPluginExport,ModelUtils,pluginConfigSpec} = await importShared('@baseplate-dev/project-builder-lib');
const common = createPlatformPluginExport({
  dependencies: {
    config: pluginConfigSpec
  },
  exports: {
    authModelConfig: authModelConfigSpec
  },
  initialize: ({ config }, { pluginKey }) => {
    config.registerSchemaCreator(
      pluginKey,
      createPlaceholderAuthPluginDefinitionSchema
    );
    return {
      authModelConfig: {
        getUserModel: (definition) => ModelUtils.byNameOrThrow(definition, PLACEHOLDER_AUTH_MODELS.user)
      }
    };
  }
});

export { common as default };
//# sourceMappingURL=__federation_expose_placeholder-authCoreCommon-DrFV9FSW.js.map
