This is a regression introduced here: FEATURE: Allow users to confirm session with passkeys (#24337) · discourse/discourse@c6ead3f · GitHub
I think the code needs to be moved in the try{} below; otherwise, the error will use the UI instead of the console.
4 Likes