0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2024-12-30 20:33:54 -05:00

chore(toolkit,core): remove demo tag from logto email connector (1/2) (#4099)

This commit is contained in:
Darcy Ye 2023-06-30 15:22:35 +08:00 committed by GitHub
parent b8001fd6c8
commit e179ae2127
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 4 deletions

View file

@ -2,7 +2,7 @@ import {
generateOidcCookieKey, generateOidcCookieKey,
generateOidcPrivateKey, generateOidcPrivateKey,
} from '@logto/cli/lib/commands/database/utils.js'; } from '@logto/cli/lib/commands/database/utils.js';
import { DemoConnector } from '@logto/connector-kit'; import { DemoConnector, ServiceConnector } from '@logto/connector-kit';
import { createTenantMetadata } from '@logto/core-kit'; import { createTenantMetadata } from '@logto/core-kit';
import { import {
type LogtoOidcConfigType, type LogtoOidcConfigType,
@ -185,7 +185,7 @@ export class TenantsLibrary {
const { cloudUrlSet } = EnvSet.global; const { cloudUrlSet } = EnvSet.global;
await Promise.all( await Promise.all(
[DemoConnector.Email, DemoConnector.Sms].map(async (connectorId) => { [ServiceConnector.Email, DemoConnector.Sms].map(async (connectorId) => {
return connectors.insertConnector( return connectors.insertConnector(
createCloudServiceConnector({ createCloudServiceConnector({
tenantId, tenantId,

View file

@ -283,12 +283,16 @@ export type GetUserInfo = (
export enum DemoConnector { export enum DemoConnector {
Sms = 'logto-sms', Sms = 'logto-sms',
Email = 'logto-email',
Social = 'logto-social-demo', Social = 'logto-social-demo',
} }
export const demoConnectorIds: readonly string[] = Object.freeze([ export const demoConnectorIds: readonly string[] = Object.freeze([
DemoConnector.Sms, DemoConnector.Sms,
DemoConnector.Email,
DemoConnector.Social, DemoConnector.Social,
]); ]);
export enum ServiceConnector {
Email = 'logto-email',
}
export const serviceConnectorIds: readonly string[] = Object.freeze([ServiceConnector.Email]);