Merge pull request #317 from zitadel/fix-rm-log

fix: remove `JSON.stringify` as log
This commit is contained in:
Max Peintner
2024-12-11 10:48:41 +01:00
committed by GitHub

View File

@@ -113,10 +113,7 @@ async function isSessionValid(session: Session): Promise<boolean> {
// must have one single check // must have one single check
mfaValid = !!(otpEmail || otpSms || totp || webAuthN); mfaValid = !!(otpEmail || otpSms || totp || webAuthN);
if (!mfaValid) { if (!mfaValid) {
console.warn( console.warn("Session has no valid multifactor", session.factors);
"Session has no valid multifactor",
JSON.stringify(session.factors),
);
} }
} else { } else {
mfaValid = true; mfaValid = true;