UNPKG

@hz-9/a5-authn

Version:

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

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