From 6b2876475e4d1785adc98520748aa2efe5d9e038 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 a8864b6..33713cb 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 authSession.handleIncomingRedirect() + await authn.checkUser() const session = 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: ' + authn.currentUser().uri } else {