Skip to content
Open
12 changes: 10 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,21 @@ on:
push:
branches:
- main
- staging
pull_request:
branches:
- main
- staging
workflow_dispatch:

jobs:
build:
update-deps:
uses: SolidOS/solidos/.github/workflows/update-solidos-deps.yml@main
secrets: inherit

build:
needs: update-deps
runs-on: ubuntu-latest

strategy:
matrix:
node-version:
Expand Down Expand Up @@ -60,6 +65,9 @@ jobs:

npm-publish-dev:
needs: build
permissions:
id-token: write
contents: read
uses: SolidOS/solidos/.github/workflows/publish-prerelease.yml@main
with:
node_version: 22
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