@hz-9/a5-authn
Version:
Authentication module for the @hz-9/a5-* series of repositories.
27 lines (26 loc) • 791 B
TypeScript
import { A5AuthnJwtStrategyConstructorOptions } from './strategy';
/**
* A5AuthnJwtModule 的选项配置接口
* 用于同步配置方式 A5AuthnJwtModule.forRoot()
* @public
*/
export type A5AuthnJwtModuleOptions = A5AuthnJwtStrategyConstructorOptions;
/**
* A5AuthnJwtModule 的异步选项配置接口
* 用于异步配置方式 A5AuthnJwtModule.forRootAsync()
* @public
*/
export interface A5AuthnJwtModuleAsyncOptions {
/**
* 工厂函数,返回 A5AuthnJwtModuleOptions 配置对象
*/
useFactory?: (...args: unknown[]) => Promise<A5AuthnJwtModuleOptions> | A5AuthnJwtModuleOptions;
/**
* 需要注入到 useFactory 函数中的依赖项
*/
inject?: unknown[];
/**
* 需要导入的模块列表
*/
imports?: unknown[];
}