TL;DR: Adding MFA to homegrown authentication improves sign-in assurance, but the operational risk shifts to factor enrollment, challenge expiry, retry handling, and secret storage, according to WorkOS. The control question is no longer whether MFA exists, but whether the surrounding identity workflow prevents reuse, exposure, and weak fallback paths.
Editorial analysis by NHI Mgmt Group, based on content published by WorkOS: “How to add MFA to your homegrown auth using WorkOS”.
Key questions
Q: What breaks when MFA is bolted onto homegrown authentication without lifecycle controls?
A: The weak point is not the second factor itself but the state around it.
Q: Why do SMS-based MFA flows create more risk than TOTP in custom auth systems?
A: SMS depends on a transport channel that can be intercepted through SIM swap, phishing, or malware, so it is weaker as a primary factor.
Q: How can security teams tell whether adaptive MFA is working properly?
A: Look for a lower challenge rate on routine sessions, a higher challenge rate on suspicious transactions, and stable or improved conversion.
Practitioner guidance
- Prefer TOTP over SMS for primary MFA Use TOTP as the default second factor and reserve SMS only for constrained fallback scenarios.
- Treat MFA secrets as managed secrets Store the API key, client ID, TOTP secret, and any challenge material as managed secrets, never in logs or client-side code.
- Enforce single-use and short-lived challenges Invalidate each challenge after successful verification and reject expired SMS or TOTP challenges without exception.
Bottom line: Adding MFA to homegrown authentication improves assurance, but the real control surface shifts to factor lifecycle management, not just sign-in mechanics.
Explore further
View Full Forum → | NHI Foundation Course → | Our Services → | Read the full analysis →
MFA is only as strong as the lifecycle around it: Adding a second factor improves assurance, but the security outcome depends on how enrollment, challenge issuance, expiry, and reuse are governed. A homegrown implementation turns MFA into a stateful identity workflow, not a simple login toggle. The practical conclusion is that teams must treat factor lifecycle controls as part of authentication design, not as after-the-fact hardening.
A few things that frame the scale:
- Across one million observed logins, 1 in 4 were password-based rather than SSO, 2 in 5 were not protected by MFA and 1 in 5 used a weak, breached or reused password.
A question worth separating out:
Q: When should teams re-enroll or reset MFA factors after a suspicious event?
A: Re-enrollment is appropriate when a device changes, a user reports compromise, or verification patterns suggest abuse such as repeated failed challenges. The goal is to invalidate the existing factor state before an attacker can keep using it. A secure reset path should revoke old factors, not layer a new factor on top of them.
👉 Read our full editorial: MFA for homegrown auth: what teams need to govern now