Skip to content

fix(dev): use authn compatibility login flow#211

Open
bourgeoa wants to merge 1 commit into
mainfrom
uvdsl
Open

fix(dev): use authn compatibility login flow#211
bourgeoa wants to merge 1 commit into
mainfrom
uvdsl

Conversation

@bourgeoa
Copy link
Copy Markdown
Contributor

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.

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.
Copilot AI review requested due to automatic review settings May 23, 2026 21:04
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the dev harness login initialization to use the newer authn compatibility flow and to detect “logged in” status across different session shapes (legacy vs UVD-SL-backed).

Changes:

  • Replace authSession.handleIncomingRedirect() with authn.checkUser() in the dev entrypoint.
  • Add a session-shape-tolerant isLoggedIn computation (session.info.isLoggedIn / session.isActive / session.webId).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread dev/index.js
Comment on lines +17 to 19
if (isLoggedIn) {
// Update the page with the status.
webId.textContent = 'Logged in as: ' + authn.currentUser().uri
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants