UNPKG

766 BTypeScriptView Raw
1import { ModuleMetadata, Type } from '@nestjs/common';
2export interface IAuthModuleOptions<T = any> {
3 defaultStrategy?: string | string[];
4 session?: boolean;
5 property?: string;
6 [key: string]: any;
7}
8export interface AuthOptionsFactory {
9 createAuthOptions(): Promise<IAuthModuleOptions> | IAuthModuleOptions;
10}
11export interface AuthModuleAsyncOptions extends Pick<ModuleMetadata, 'imports'> {
12 useExisting?: Type<AuthOptionsFactory>;
13 useClass?: Type<AuthOptionsFactory>;
14 useFactory?: (...args: any[]) => Promise<IAuthModuleOptions> | IAuthModuleOptions;
15 inject?: any[];
16}
17export declare class AuthModuleOptions implements IAuthModuleOptions {
18 defaultStrategy?: string | string[];
19 session?: boolean;
20 property?: string;
21}