Automatically trigger passkeys on login view (#3307)

Add an on-load handler to pkhtml.js so that when the partial
view is displayed passkey auth is automatically prompted for.
If the users browser blocks this event, the fallback manual
buttons still exist.
This commit is contained in:
Firstyear 2024-12-19 15:46:15 +10:00 committed by GitHub
parent c59f560e50
commit 4f2eb8b5f8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -40,3 +40,8 @@ try {
});
} catch (_error) {};
try {
window.addEventListener("load", (event) => {
asskey_login()
});
} catch (_error) {};