UNPKG

@hz-9/a5-authn

Version:

Authentication module for the @hz-9/a5-* series of repositories.

27 lines (26 loc) 813 B
import { A5AuthnPhoneStrategyConstructorOptions } from './strategy'; /** * A5AuthnPhoneModule 的选项配置接口 * 用于同步配置方式 A5AuthnPhoneModule.forRoot() * @public */ export type A5AuthnPhoneModuleOptions = A5AuthnPhoneStrategyConstructorOptions; /** * A5AuthnPhoneModule 的异步选项配置接口 * 用于异步配置方式 A5AuthnPhoneModule.forRootAsync() * @public */ export interface A5AuthnPhoneModuleAsyncOptions { /** * 工厂函数,返回 A5AuthnPhoneModuleOptions 配置对象 */ useFactory?: (...args: unknown[]) => Promise<A5AuthnPhoneModuleOptions> | A5AuthnPhoneModuleOptions; /** * 需要注入到 useFactory 函数中的依赖项 */ inject?: unknown[]; /** * 需要导入的模块列表 */ imports?: unknown[]; }