Fix undefined staticFileRateLimit in auth server

- Add missing staticFileRateLimit definition in auth-server/index.ts
- Resolves compilation error in auth server build
- Addresses PR check failure about missing rate limiting on line 123
This commit is contained in:
Basil Hosmer 2025-09-12 00:44:29 -04:00
commit 4e3414fe9c
No known key found for this signature in database

View file

@ -73,6 +73,12 @@ const fakeAuthRateLimit = rateLimit({
message: { error: 'too_many_requests', error_description: 'Authentication rate limit exceeded' }
});
const staticFileRateLimit = rateLimit({
windowMs: 10 * 60 * 1000, // 10 minutes
limit: 25, // 25 requests per 10 minutes for static files
message: { error: 'too_many_requests', error_description: 'Static file rate limit exceeded' }
});
// Token introspection endpoint (RFC 7662)
app.post('/introspect', introspectRateLimit, express.urlencoded({ extended: false }), async (req, res) => {
try {