Skip to content

Commit ab60a9e

Browse files
authored
Calmer le rate limiter
Remove rate limiting from token validation endpoint
2 parents 02ed29e + 3840a4d commit ab60a9e

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

backend/keystone.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,8 @@ export default withAuth(config({
101101

102102
app.use('/api/graphql', uploadLimiter);
103103
app.use('/api/graphql', apiLimiter);
104-
app.use('/api/validate-magic-token', apiLimiter);
104+
// Token validation endpoint is not rate limited - it's a lightweight
105+
// check that shouldn't count against user limits
105106

106107
// Validate magic token endpoint
107108
app.get('/api/validate-magic-token', async (req, res) => {

0 commit comments

Comments
 (0)