diff --git a/src/integrations/auth/config.ts b/src/integrations/auth/config.ts index 8e023e9f7..b7fef3113 100644 --- a/src/integrations/auth/config.ts +++ b/src/integrations/auth/config.ts @@ -171,7 +171,14 @@ const getAuthConfig = () => { }, plugins: [ - apiKey(), + apiKey({ + enableSessionForAPIKeys: true, + rateLimit: { + enabled: true, + timeWindow: 1000 * 60 * 60 * 24, // 1 day + maxRequests: 500, // 500 requests per day + }, + }), username({ minUsernameLength: 3, maxUsernameLength: 64,