Skip to content

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

Open
bourgeoa wants to merge 1 commit into
mainfrom
uvdsl
Open

fix(dev): use authn compatibility login flow#161
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:02
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

Updates the development entrypoint’s authentication handling to use the newer authn compatibility flow, aiming to support multiple session shapes (legacy and uvdsl-backed) when determining login state.

Changes:

  • Replaced authSession.handleIncomingRedirect() with authn.checkUser() in the dev login flow.
  • Introduced a “shape-safe” isLoggedIn check across different session representations.

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

Comment thread dev/index.js
await logic.authn.checkUser()
const session = logic.authSession
if (session.info.isLoggedIn) {
const isLoggedIn = session?.info?.isLoggedIn ?? session?.isActive ?? Boolean(session?.webId)
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