Add passkey login for protected UI (#845)

* feat(auth): add passkey login for protected UI

* fix: polish passkey setup and correct WebAuthn user IDs

* feat: improve passkey login management

* build: align passkey deps with upstream main

* refactor: move ui auth out of opencode module

---------

Co-authored-by: Bohdan Triapitsyn <artmore@protonmail.com>
This commit is contained in:
Dave Otero
2026-04-11 22:36:02 +03:00
committed by GitHub
co-authored by Bohdan Triapitsyn
parent 37cf7d9c79
commit 75a10ea66c
15 changed files with 1640 additions and 53 deletions
+4 -1
View File
@@ -60,7 +60,10 @@ export const createBootstrapRuntime = (dependencies) => {
registerCommonRequestMiddleware(app, { express });
const uiAuthController = createUiAuth({ password: uiPassword });
const uiAuthController = createUiAuth({
password: uiPassword,
readSettingsFromDiskMigrated,
});
if (uiAuthController.enabled) {
console.log('UI password protection enabled for browser sessions');
}