From 5bb10743aba8a76ff62ae284324b95af03e5d487 Mon Sep 17 00:00:00 2001 From: Chris Farhood Date: Mon, 4 May 2026 21:28:59 +0000 Subject: [PATCH] fix(auth): correct indentation in both rateLimit blocks - First block: customRules at 10-space indent (inside rateLimit at 8) - Second block: same 10-space indent structure - Co-Authored-By: Paperclip --- apps/api/src/lib/auth.ts | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/apps/api/src/lib/auth.ts b/apps/api/src/lib/auth.ts index 54b1b38..8839098 100644 --- a/apps/api/src/lib/auth.ts +++ b/apps/api/src/lib/auth.ts @@ -96,15 +96,15 @@ export async function initAuth(): Promise { max: 100, window: 10, storage: "memory", -customRules: { - "/sign-in/social": { max: 10, window: 60 }, - "/sign-in/email": { max: 10, window: 60 }, - "/sign-up/email": { max: 5, window: 60 }, - "/get-session": false, + customRules: { + "/sign-in/social": { max: 10, window: 60 }, + "/sign-in/email": { max: 10, window: 60 }, + "/sign-up/email": { max: 5, window: 60 }, + "/get-session": false, + }, }, - }, - plugins: [ - genericOAuth({ + plugins: [ + genericOAuth({ config: [ { providerId: "authentik", @@ -249,12 +249,12 @@ customRules: { max: 100, window: 10, storage: "memory", - customRules: { - "/sign-in/social": { max: 10, window: 60 }, - "/sign-in/email": { max: 10, window: 60 }, - "/sign-up/email": { max: 5, window: 60 }, - "/get-session": false, - }, + customRules: { + "/sign-in/social": { max: 10, window: 60 }, + "/sign-in/email": { max: 10, window: 60 }, + "/sign-up/email": { max: 5, window: 60 }, + "/get-session": false, + }, }, account: { storeStateStrategy: "cookie" as const,