fix(auth): rate limit Better Auth routes per client

This commit is contained in:
2026-07-10 11:27:52 -04:00
parent 73f52cdcb1
commit 91e0e4522f
10 changed files with 276 additions and 2 deletions
+5
View File
@@ -139,6 +139,11 @@ export function testEnv(options: TestEnvOptions): Env {
return Promise.resolve({ success: true });
},
},
ELY_AUTH_EMAIL_RATE_LIMITER: {
limit(): Promise<{ success: boolean }> {
return Promise.resolve({ success: true });
},
},
ELY_API_AUDIT: {
writeDataPoint(event?: ElyAnalyticsDataPoint): void {
if (event !== undefined) {