UNPKG

@nocobase/plugin-verification

Version:

User identity verification management, including SMS, TOTP authenticator, with extensibility.

26 lines (25 loc) 1.31 kB
/** * This file is part of the NocoBase (R) project. * Copyright (c) 2020-2024 NocoBase Co., Ltd. * Authors: NocoBase Team. * * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. * For more information, please refer to: https://www.nocobase.com/agreement. */ import { Plugin } from '@nocobase/client-v2'; import { SMSOTPProviderManager } from './otp-sms-provider-manager'; import { VerificationManager } from './verification-manager'; /** * v2 entry for the Verification plugin. Mirrors the v1 surface (`verificationManager` and `smsOTPProviderManager` instances exposed to downstream plugins) but plugs into the v2 lifecycle: * * - `pluginSettingsManager.addMenuItem` / `addPageTabItem` register the admin settings page with a lazy `componentLoader`. * - `flowEngine.registerModels` contributes the User Center entry. * - The legacy `src/client/` entry is intentionally left in place so downstream v1-only plugins (TOTP authenticator, 2FA pro plugin) keep working until they migrate independently. */ export declare class PluginVerificationClientV2 extends Plugin { verificationManager: VerificationManager; smsOTPProviderManager: SMSOTPProviderManager; load(): Promise<void>; private registerSettingsPages; } export default PluginVerificationClientV2;