UNPKG

@experium/nest-bruteforce-guard

Version:
13 lines (12 loc) 782 B
import { ExecutionContext } from '@nestjs/common'; import { AbstractExceptionCatcher } from './abstract-exception.catcher'; import { ExceptionCatcherRegistry } from './exception-catcher.registry'; import { UserNotFoundException } from '../exception/user-not-found.exception'; import { LoginAttempt } from '../entity/login-attempt.entity'; import { BruteforceGuardConfiguration } from '../config/bruteforce-quard.configuration'; export declare class UserNotFoundExceptionCatcher extends AbstractExceptionCatcher { readonly config: BruteforceGuardConfiguration; constructor(registry: ExceptionCatcherRegistry, config: BruteforceGuardConfiguration); supports(exception: any): boolean; catch(exception: UserNotFoundException, context: ExecutionContext): LoginAttempt; }