Phase 6: Rate limiting on auth endpoints
This commit is contained in:
@@ -9,6 +9,9 @@ import type { MetaCallbackBody, AuthTokensResponse } from '../../types/api.js';
|
||||
|
||||
const metaAuthRoutes: FastifyPluginAsync = async (fastify) => {
|
||||
fastify.post<{ Body: MetaCallbackBody }>('/auth/meta/callback', {
|
||||
config: {
|
||||
rateLimit: { max: 10, timeWindow: '1 minute' },
|
||||
},
|
||||
schema: {
|
||||
body: {
|
||||
type: 'object',
|
||||
|
||||
Reference in New Issue
Block a user