ios 14 beta webauth user activated events

In the video https://developer.apple.com/videos/play/wwdc2020/10670/ this refers to "user activated events" for navigator.credentials.get. Hovever, this term of "user activated events" is very hard to find online, and no example code exists. Is a more complete example of html + js available for the interaction of navigator.credentials.get available that highlights the correct method of using this api in ios?

It means the user needs to interact with the website via gesture, e.g. touch. It's nicely explained on https://webkit.org/blog/11312/meet-face-id-and-touch-id-for-the-web/.

Something like this should work:

function login() {
    // use navigator.credentials.get 
}

document.addEventListener("DOMContentLoaded", e => {
    document.querySelector('#login-button').addEventListener('click', login);
}
ios 14 beta webauth user activated events
 
 
Q