Skip to content

Commit ece8602

Browse files
committed
fix dev login wo match new authn
1 parent c3f247a commit ece8602

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

dev/index.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,10 @@ const webId = document.getElementById('webId')
1111
loginBanner.appendChild(UI.login.loginStatusBox(document, null, {}))
1212

1313
async function finishLogin () {
14-
await authSession.handleIncomingRedirect()
14+
await authn.checkUser()
1515
const session = authSession
16-
if (session.info.isLoggedIn) {
16+
const isLoggedIn = session?.info?.isLoggedIn ?? session?.isActive ?? Boolean(session?.webId)
17+
if (isLoggedIn) {
1718
// Update the page with the status.
1819
webId.textContent = 'Logged in as: ' + authn.currentUser().uri
1920
} else {

0 commit comments

Comments
 (0)