Skip to content

Commit 4e3414f

Browse files
committed
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
1 parent ecd82f4 commit 4e3414f

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

auth-server/index.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,12 @@ const fakeAuthRateLimit = rateLimit({
7373
message: { error: 'too_many_requests', error_description: 'Authentication rate limit exceeded' }
7474
});
7575

76+
const staticFileRateLimit = rateLimit({
77+
windowMs: 10 * 60 * 1000, // 10 minutes
78+
limit: 25, // 25 requests per 10 minutes for static files
79+
message: { error: 'too_many_requests', error_description: 'Static file rate limit exceeded' }
80+
});
81+
7682
// Token introspection endpoint (RFC 7662)
7783
app.post('/introspect', introspectRateLimit, express.urlencoded({ extended: false }), async (req, res) => {
7884
try {

0 commit comments

Comments
 (0)