Activation ends the session while the reply is on its way, so a 401 elsewhere
in the page could leave before the codes arrived.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
While one-time codes are visible the 401 redirect is suppressed and a
beforeunload guard is active until the done button. MFA buttons follow the
account state. A failed logout shows an error instead of looking successful.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>