@experium/nest-bruteforce-guard
Version:
Authorization protection from bruteforce
13 lines (12 loc) • 782 B
TypeScript
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;
}