UNPKG

@experium/nest-bruteforce-guard

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