@experium/nest-bruteforce-guard
Version:
Authorization protection from bruteforce
14 lines (10 loc) • 327 B
text/typescript
import { AbstractExceptionCatcher } from './abstract-exception.catcher';
export class ExceptionCatcherRegistry {
private catchers: AbstractExceptionCatcher[] = [];
register(catcher: AbstractExceptionCatcher) {
this.catchers.push(catcher);
}
getAll(): AbstractExceptionCatcher[] {
return this.catchers;
}
}