From c58517c08ca741432c6bff36116ece723e7d19a8 Mon Sep 17 00:00:00 2001 From: Alain Bourgeois Date: Sat, 23 May 2026 19:45:36 +0200 Subject: [PATCH] fix(dev): use authn compatibility login flow Replace direct authSession.handleIncomingRedirect usage with authn.checkUser in the dev entrypoint.\nUse a session-shape-safe logged-in check so both legacy and uvdsl-backed sessions work. --- dev/index.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/dev/index.js b/dev/index.js index 7bdd311..45957ac 100644 --- a/dev/index.js +++ b/dev/index.js @@ -10,9 +10,10 @@ const webId = document.getElementById('webId') loginBanner.appendChild(UI.login.loginStatusBox(document, null, {})) async function finishLogin () { - await logic.authSession.handleIncomingRedirect() + await logic.authn.checkUser() const session = logic.authSession - if (session.info.isLoggedIn) { + const isLoggedIn = session?.info?.isLoggedIn ?? session?.isActive ?? Boolean(session?.webId) + if (isLoggedIn) { // Update the page with the status. webId.innerHTML = 'Logged in as: ' + logic.authn.currentUser().uri } else {