From 360c996f903c599d899bc6e1fbb8fddf0caad128 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 82db25d..68f6143 100644 --- a/dev/index.js +++ b/dev/index.js @@ -11,9 +11,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.textContent = 'Logged in as: ' + authn.currentUser().uri } else {