isUserVerifyingPlatformAuthenticatorAvailable returning false in Safari 14

Feature detection in Safari 14 (running on macOS Big Sur on Intel MacBook Pro) is returning false. Tested this in localhost and HTTPS served pages with no luck. As per the "Meet Face ID and Touch ID for the web" session, it is supposed to be available.

Code Block js
PublicKeyCredential.isUserVerifyingPlatformAuthenticatorAvailable().then(console.log) // resolves to "false"


Is the feature available? Is there anything that has to be installed or enabled explicitly?
Answered by leonkoole in 617554022
I think you have to enable "When Authentication Local Authenticator" under Experimental Features in the Develop menu.
Accepted Answer
I think you have to enable "When Authentication Local Authenticator" under Experimental Features in the Develop menu.
I enabled it, but it doesn't work, yet.

Edit: it only works, if your Mac Book is unfolded, because if it's folded, you can not use TouchID ;)
Do you need to run in on Big Sur or is Safari Technology Preview all you need?
Still getting false while lid is open.

Note: it appears PublicKeyCredential is not available on HTTP connections, HTTPS is a must.
@leonkoole Enabling "Web Authentication Local Authenticator" did it. Thanks!
Should this work on Catalina (10.15.6)?
I tried Safari Beta (Version 14.0 (15610.1.28.1.7, 15610), and have the appropriate experimental features set, but isUserVerifyingPlatformAuthenticatorAvailable() is always false.

Using Chrome browser on same laptop I get true (and can register and authenticate using touch id).
Does this only work in Safari on Big Sur?
isUserVerifyingPlatformAuthenticatorAvailable returning false in Safari 14
 
 
Q