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:
parent
b8001fd6c8
commit
e179ae2127
2 changed files with 8 additions and 4 deletions
|
@ -2,7 +2,7 @@ import {
|
|||
generateOidcCookieKey,
|
||||
generateOidcPrivateKey,
|
||||
} 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 {
|
||||
type LogtoOidcConfigType,
|
||||
|
@ -185,7 +185,7 @@ export class TenantsLibrary {
|
|||
const { cloudUrlSet } = EnvSet.global;
|
||||
|
||||
await Promise.all(
|
||||
[DemoConnector.Email, DemoConnector.Sms].map(async (connectorId) => {
|
||||
[ServiceConnector.Email, DemoConnector.Sms].map(async (connectorId) => {
|
||||
return connectors.insertConnector(
|
||||
createCloudServiceConnector({
|
||||
tenantId,
|
||||
|
|
|
@ -283,12 +283,16 @@ export type GetUserInfo = (
|
|||
|
||||
export enum DemoConnector {
|
||||
Sms = 'logto-sms',
|
||||
Email = 'logto-email',
|
||||
Social = 'logto-social-demo',
|
||||
}
|
||||
|
||||
export const demoConnectorIds: readonly string[] = Object.freeze([
|
||||
DemoConnector.Sms,
|
||||
DemoConnector.Email,
|
||||
DemoConnector.Social,
|
||||
]);
|
||||
|
||||
export enum ServiceConnector {
|
||||
Email = 'logto-email',
|
||||
}
|
||||
|
||||
export const serviceConnectorIds: readonly string[] = Object.freeze([ServiceConnector.Email]);
|
||||
|
|
Loading…
Reference in a new issue