From d33a61e713d99ce8f89666499e0545f8048b1734 Mon Sep 17 00:00:00 2001 From: Jesse Wierzbinski Date: Sat, 15 Jun 2024 20:27:31 -1000 Subject: [PATCH] fix(api): :bug: Properly disable challenges when config option is set --- utils/api.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/api.ts b/utils/api.ts index d8320e96..14c30ff3 100644 --- a/utils/api.ts +++ b/utils/api.ts @@ -284,7 +284,7 @@ export const auth = ( } } - if (challengeData) { + if (challengeData && config.validation.challenges.enabled) { const challengeCheck = await checkRouteNeedsChallenge( challengeData, context,