Compare commits

...

1 Commits

Author SHA1 Message Date
Henry
d9b653ff44 feat: extend apiKey rate limit 2025-10-17 22:20:39 +01:00

View File

@@ -240,7 +240,14 @@ export const initAuth = (db: dbClient) => {
] ]
: []), : []),
// @todo: hasing is disabled due to a bug in the api key plugin // @todo: hasing is disabled due to a bug in the api key plugin
apiKey({ disableKeyHashing: true }), apiKey({
disableKeyHashing: true,
rateLimit: {
enabled: true,
timeWindow: 1000 * 60, // 1 minute
maxRequests: 100, // 100 requests per minute
},
}),
magicLink({ magicLink({
expiresIn: 60 * 60 * 24 * 7, // 7 days expiresIn: 60 * 60 * 24 * 7, // 7 days
sendMagicLink: async ({ email, url }) => { sendMagicLink: async ({ email, url }) => {