From Password Check to a Full Login
Follow a pending login and see why a browser success flag cannot replace a server-verified second factor.
You’re reading a preview. Premium includes the full lesson and specialist practice. View the full curriculum.
A password is only the first step
Mia enters the right password. Her account also requires a code from an authenticator app. At this moment, should the server create a full signed-in session?
Not yet. The login is pending until the server verifies the second factor. MFA, or multifactor authentication, means the password alone does not complete this flow.
Give each state a clear meaning
| State | What the server knows | Access to normal protected pages |
|---|---|---|
| Signed out | No completed identity | No |
| Password checked, second factor pending | The first factor passed for one login flow | No |
| Second factor verified | The required factors passed for this account and flow | Yes, through a completed session |
The original route trusts a request field named mfaVerified. A caller can send true without completing the authenticator step.
{
"password": "correct-fixture-password",
"mfaVerified": true
}
This is a claim from the browser. It is not a record of work the server performed.