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
mfaValid = !!(otpEmail || otpSms || totp || webAuthN);
if (!mfaValid) {
console.warn(
"Session has no valid multifactor",
JSON.stringify(session.factors),
);
console.warn("Session has no valid multifactor", session.factors);
}
} else {
mfaValid = true;