From db19788e5fed747f228a32a620d0b244c7866256 Mon Sep 17 00:00:00 2001 From: Chris Ruppel Date: Wed, 1 Dec 2021 09:59:34 +0100 Subject: [PATCH] fix: really really fix AuthPolicy setup --- api/policies/AuthPolicy.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/api/policies/AuthPolicy.js b/api/policies/AuthPolicy.js index 832bb813..d89adb1a 100644 --- a/api/policies/AuthPolicy.js +++ b/api/policies/AuthPolicy.js @@ -80,6 +80,8 @@ async function isTOTPValid(user, token) { } module.exports = { + isTOTPValid, + /** * Enforces an _optional_ TOTP requirement. If the user has 2FA enabled, they * must answer this challenge. Users without 2FA enabled will pass through.