diff --git a/packages/core/package.json b/packages/core/package.json index 878882934..367b8050a 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -28,6 +28,9 @@ "@logto/connector-facebook": "^1.0.0-beta.4", "@logto/connector-github": "^1.0.0-beta.4", "@logto/connector-google": "^1.0.0-beta.4", + "@logto/connector-mock-email": "^1.0.0-beta.4", + "@logto/connector-mock-sms": "^1.0.0-beta.4", + "@logto/connector-mock-social": "^1.0.0-beta.4", "@logto/connector-schemas": "^1.0.0-beta.4", "@logto/connector-sendgrid-email": "^1.0.0-beta.4", "@logto/connector-smtp": "^1.0.0-beta.4", diff --git a/packages/core/src/connectors/index.ts b/packages/core/src/connectors/index.ts index f365696ad..ac65b1a6f 100644 --- a/packages/core/src/connectors/index.ts +++ b/packages/core/src/connectors/index.ts @@ -6,10 +6,11 @@ import { Connector } from '@logto/schemas'; import resolvePackagePath from 'resolve-package-path'; import { ConnectorInstance, SocialConnectorInstance } from '@/connectors/types'; +import envSet from '@/env-set'; import RequestError from '@/errors/RequestError'; import { findAllConnectors, insertConnector } from '@/queries/connector'; -import { connectorPackages } from './consts'; +import { defaultConnectorPackages } from './consts'; import { getConnectorConfig } from './utilities'; // eslint-disable-next-line @silverhand/fp/no-let diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 00dd24a99..b5f493257 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -917,6 +917,9 @@ importers: '@logto/connector-facebook': ^1.0.0-beta.4 '@logto/connector-github': ^1.0.0-beta.4 '@logto/connector-google': ^1.0.0-beta.4 + '@logto/connector-mock-email': ^1.0.0-beta.4 + '@logto/connector-mock-sms': ^1.0.0-beta.4 + '@logto/connector-mock-social': ^1.0.0-beta.4 '@logto/connector-schemas': ^1.0.0-beta.4 '@logto/connector-sendgrid-email': ^1.0.0-beta.4 '@logto/connector-smtp': ^1.0.0-beta.4 @@ -1002,6 +1005,9 @@ importers: '@logto/connector-facebook': link:../connector-facebook '@logto/connector-github': link:../connector-github '@logto/connector-google': link:../connector-google + '@logto/connector-mock-email': link:../connector-mock-email + '@logto/connector-mock-sms': link:../connector-mock-sms + '@logto/connector-mock-social': link:../connector-mock-social '@logto/connector-schemas': link:../connector-schemas '@logto/connector-sendgrid-email': link:../connector-sendgrid-mail '@logto/connector-smtp': link:../connector-smtp