Fixed Login via Passkey in Admin does not work

TnT

Member
Affected version
2.3.0 Beta 4
After I click on the passkey button, nothing happens. In the developer console i see the following error:

Code:
13:52:36.033 webauthn.js?_v=fecc8197:301 Uncaught TypeError: Cannot read properties of undefined (reading 'get')
    at Object.get (webauthn.js?_v=fecc8197:301:26)
    at fn.typeGet (webauthn.js?_v=fecc8197:98:23)
    at fn.initWebAuthn (webauthn.js?_v=fecc8197:56:10)
    at HTMLButtonElement.<anonymous> (webauthn.js?_v=fecc8197:43:11)
get @ webauthn.js?_v=fecc8197:301
typeGet @ webauthn.js?_v=fecc8197:98
initWebAuthn @ webauthn.js?_v=fecc8197:56
(anonymous) @ webauthn.js?_v=fecc8197:43

MacOS Version 14.4.1
Google Chrome Version 123.0.6312.124
 
Tested this on numerous sites and it's working fine here.

Cached JS could be a culprit so worth investigating that initially, along with trying different browsers.
 
Forgotten to enable https on my local dev environment. Works for me now. Perhaps you can hide the passkey buttons when no https enabled.
It would probably save a help request or two.
 
Thank you for reporting this issue, it has now been resolved. We are aiming to include any changes that have been made in a future XF release (2.3.0 Beta 8).

Change log:
On the admin login form, hide the passkey login button if JavaScript is not enabled or a secure connection is not being used
There may be a delay before changes are rolled out to the XenForo Community.
 
Top Bottom