fix(api): 🐛 Properly disable challenges when config option is set

This commit is contained in:
Jesse Wierzbinski 2024-06-15 20:27:31 -10:00
parent a0d56c044b
commit d33a61e713
No known key found for this signature in database

View file

@ -284,7 +284,7 @@ export const auth = (
}
}
if (challengeData) {
if (challengeData && config.validation.challenges.enabled) {
const challengeCheck = await checkRouteNeedsChallenge(
challengeData,
context,