UNPKG

@mercury-labs/nest-auth

Version:

Mercury framework auth library. It supports local auth, jwt with both bearer token and cookie, basic auth.

18 lines (17 loc) 605 B
import { DynamicModule } from '@nestjs/common'; import { ModuleMetadata } from '@nestjs/common/interfaces'; export interface IHashingOptions { secretKey?: string; enabled?: boolean; } export type HashingModuleOptionsAsync = Pick<ModuleMetadata, 'imports'> & { useFactory: (...args: any[]) => Promise<IHashingOptions> | IHashingOptions; inject?: any[]; global?: boolean; }; export declare class HashingModule { static forRoot(options: IHashingOptions & { global?: boolean; }): DynamicModule; static forRootAsync(options: HashingModuleOptionsAsync): DynamicModule; }