A bug has been reported where, upon clicking login, the ‘Welcome back ’ modal is immediately followed by an error message: ‘Sorry, an error occurred’. Dismissing the error allows normal authentication to proceed. The error originates from passkeyLogin in login.js and is logged in the console hellekin. The issue occurs in Firefox 115.7.0esr (64-bit) on Debian 12, running Discourse v3.3.0.beta1-dev hellekin. Moin confirmed it matches a previously reported issue on Meta Moin. Arkshine traced the regression to a specific commit in webauthn.js, suggesting the error-handling code should be moved inside a try{} block to avoid UI disruption. pmusaraj acknowledged the report and confirmed a fix is in progress via PR #25549, reproducible on Windows/macOS with the same Firefox version, though the fix should apply universally.
I have noticed this bug before on Meta, but then it appeared on my deployments after the latest upgrade: when clicking login, the “Welcome back ” modal appears, and is immediately shadowed by “Sorry, an error occurred”. Clicking OK removes the error modal and you can resume authentication normally.