Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions dev/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Comment on lines +17 to 19
} else {
Expand Down
Loading