@nestjs/passport
Version:
Nest - modern, fast, powerful node.js web framework (@passport)
22 lines (21 loc) • 766 B
TypeScript
import { ModuleMetadata, Type } from '@nestjs/common';
export interface IAuthModuleOptions<T = any> {
defaultStrategy?: string | string[];
session?: boolean;
property?: string;
[key: string]: any;
}
export interface AuthOptionsFactory {
createAuthOptions(): Promise<IAuthModuleOptions> | IAuthModuleOptions;
}
export interface AuthModuleAsyncOptions extends Pick<ModuleMetadata, 'imports'> {
useExisting?: Type<AuthOptionsFactory>;
useClass?: Type<AuthOptionsFactory>;
useFactory?: (...args: any[]) => Promise<IAuthModuleOptions> | IAuthModuleOptions;
inject?: any[];
}
export declare class AuthModuleOptions implements IAuthModuleOptions {
defaultStrategy?: string | string[];
session?: boolean;
property?: string;
}