From 910d93782b07d85cc686a8657317b3ea45403447 Mon Sep 17 00:00:00 2001 From: Thomas Kaul <4159106+dtslvr@users.noreply.github.com> Date: Fri, 10 Jul 2026 20:10:32 +0200 Subject: [PATCH] Add rate limiting to authentication and sign up endpoints --- apps/api/src/app/app.module.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/api/src/app/app.module.ts b/apps/api/src/app/app.module.ts index 12bf1b14c..4bdd50c9e 100644 --- a/apps/api/src/app/app.module.ts +++ b/apps/api/src/app/app.module.ts @@ -30,7 +30,7 @@ import { EventEmitterModule } from '@nestjs/event-emitter'; import { ScheduleModule } from '@nestjs/schedule'; import { ServeStaticModule } from '@nestjs/serve-static'; import { ThrottlerModule } from '@nestjs/throttler'; -import { StatusCodes } from 'http-status-codes'; +import { getReasonPhrase, StatusCodes } from 'http-status-codes'; import { join } from 'node:path'; import { AccessModule } from './access/access.module'; @@ -184,6 +184,7 @@ import { UserModule } from './user/user.module'; ); return { + errorMessage: getReasonPhrase(StatusCodes.TOO_MANY_REQUESTS), skipIf: () => { return !isRateLimitingEnabled; },