Bug Report: 2FA Authentication Loop and Broken UI Elements on npmjs.com #183541
Replies: 3 comments 3 replies
-
|
💬 Your Product Feedback Has Been Submitted 🎉 Thank you for taking the time to share your insights with us! Your feedback is invaluable as we build a better GitHub experience for all our users. Here's what you can expect moving forward ⏩
Where to look to see what's shipping 👀
What you can do in the meantime 💻
As a member of the GitHub community, your participation is essential. While we can't promise that every suggestion will be implemented, we want to emphasize that your feedback is instrumental in guiding our decisions and priorities. Thank you once again for your contribution to making GitHub even better! We're grateful for your ongoing support and collaboration in shaping the future of our platform. ⭐ |
Beta Was this translation helpful? Give feedback.
-
|
Connect Before Clicking: Ensure your hardware security key is physically connected and recognized before you click the button; the browser may simply ignore the click if it detects no compatible device. Reset the Environment: Try using an Incognito window or creating a completely fresh Chrome profile to verify that your current session isn't in a "restricted state" or corrupted. Check for Policy Blocks: Verify that the WebAuthn API is not being actively blocked by specific browser extensions or strict Enterprise/Group policies on your Windows machine. Debug via Console: Press F12 to open the Developer Tools and check the Console tab for red WebAuthn error messages immediately after clicking the button to see exactly why the request failed. |
Beta Was this translation helpful? Give feedback.
-
|
The original reporter and others found this effective workaround:
Additional troubleshooting steps (if the above doesn't work):
|
Beta Was this translation helpful? Give feedback.


Uh oh!
There was an error while loading. Please reload this page.
-
Select Topic Area
Bug
Body
1. Incident Summary
I am reporting a critical failure in the npm login and web authentication flow. While credentials are accepted, the Two-Factor Authentication (2FA) step fails to process to passkeys, resulting in a page refresh loop or no changes at all. This is a part of many UI bugs where UI on the login, support, and settings pages are non-responsive, indicating a significant front-end issue and possibly backend issues.
2. Technical Symptoms
2FA Failure: Submitting a request to use security key results in a page refresh or unresponsive behaviour rather than authentication. This behavior is identical when attempting to use backup recovery codes.
UI Regressions: Critical buttons and forms across the "Sign In," "Support," and various other pages are completely unresponsive to user clicks from frontend or backend bugs.
CLI Impact: Because the browser-based 2FA handshake never completes, the CLI process hangs indefinitely.
3. Environment Details
Browsers: Chrome , Microsoft Edge
Operating System: Windows 11
4. Steps to Reproduce (CLI Flow)
Result: Clicking the button fails to trigger the passkey window or redirect; the CLI never receives the authentication token.
5. Steps to Reproduce (Website Flow)
Result: The UI fails to redirect, a page refresh occurs, and the session is never established.
6. Troubleshooting Attempted
Cleared browser cache and tested via Incognito/Private modes.
Tested across multiple browsers (Chrome and Edge), with UI and 2FA issues persisting in both environments.
Beta Was this translation helpful? Give feedback.
All reactions