import { importShared } from './__federation_fn_import-C_QCk5FX.js';
import { L as LOCAL_AUTH_MODELS } from './model-names-CEoSIalq.js';
import { c as createLocalAuthPluginDefinitionSchema } from './plugin-definition-hAzbWO7b.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,
      createLocalAuthPluginDefinitionSchema
    );
    return {
      authModelConfig: {
        getUserModel: (definition) => ModelUtils.byNameOrThrow(definition, LOCAL_AUTH_MODELS.user)
      }
    };
  }
});

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