1 | import { ModuleMetadata, Type } from '@nestjs/common';
|
2 | export interface IAuthModuleOptions<T = any> {
|
3 | defaultStrategy?: string | string[];
|
4 | session?: boolean;
|
5 | property?: string;
|
6 | [key: string]: any;
|
7 | }
|
8 | export interface AuthOptionsFactory {
|
9 | createAuthOptions(): Promise<IAuthModuleOptions> | IAuthModuleOptions;
|
10 | }
|
11 | export 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 | }
|
17 | export declare class AuthModuleOptions implements IAuthModuleOptions {
|
18 | defaultStrategy?: string | string[];
|
19 | session?: boolean;
|
20 | property?: string;
|
21 | }
|