Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,11 @@ on:
push:
branches:
- main
- staging
pull_request:
branches:
- main
- staging
workflow_dispatch:

jobs:
Expand Down
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
} else {
Expand Down
Loading
Loading