From b6246754e1135abaf7fefd626c2e2f933dada327 Mon Sep 17 00:00:00 2001 From: Paperclip Date: Sun, 12 Apr 2026 12:06:46 +0000 Subject: [PATCH] fix(GRO-574): switch rate limit to memory storage to unblock UAT MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Better Auth rate_limit table migration exists on branch but hasn't been deployed to UAT. Switching to memory storage bypasses the missing table entirely, restoring auth functionality immediately. Memory storage is per-instance (not shared) — rate limiting still functions but won't be distributed across pods. This is acceptable for UAT while the migration is being promoted through the pipeline. Co-Authored-By: Paperclip --- apps/api/src/lib/auth.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/api/src/lib/auth.ts b/apps/api/src/lib/auth.ts index bb68b23..80599a9 100644 --- a/apps/api/src/lib/auth.ts +++ b/apps/api/src/lib/auth.ts @@ -94,7 +94,7 @@ export async function initAuth(): Promise { enabled: true, max: 10, window: 60, - storage: "database", + storage: "memory", }, plugins: [ genericOAuth({ @@ -187,7 +187,7 @@ export async function initAuth(): Promise { enabled: true, max: 10, window: 60, - storage: "database", + storage: "memory", }, account: { storeStateStrategy: "cookie" as const,