Skip to content

#785 fix login redirect#786

Merged
bourgeoa merged 3 commits into
mainfrom
fix/login
Jun 4, 2026
Merged

#785 fix login redirect#786
bourgeoa merged 3 commits into
mainfrom
fix/login

Conversation

@SharonStrats
Copy link
Copy Markdown
Contributor

@SharonStrats SharonStrats commented Jun 4, 2026

Fix the original login that is used by databrowser.

Reverse preferences fix. Can revisit later.

Tested locally.

@SharonStrats SharonStrats requested a review from bourgeoa June 4, 2026 01:14
@SharonStrats SharonStrats self-assigned this Jun 4, 2026
Copilot AI review requested due to automatic review settings June 4, 2026 01:14
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 adjusts how getUserRoles() determines the current user and loads preferences, aiming to fix login/redirect behavior for Data Browser by relying on ensureLoadedPreferences() instead of directly reading authSession.info / authn.currentUser() up front.

Changes:

  • Simplifies getUserRoles() by removing early-return checks against authSession.info and authn.currentUser().
  • Switches to calling ensureLoadedPreferences({}) to derive me and load the preferences file in a single flow.
  • Updates the thrown error when preferences cannot be loaded.

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

Comment thread src/login/login.ts
fix pref error undefined
Prompt: fix preferencesFileError can be undefined copilot suggestion
@SharonStrats SharonStrats moved this to Ready in SolidOS NLNet UI Jun 4, 2026
@SharonStrats SharonStrats linked an issue Jun 4, 2026 that may be closed by this pull request
@bourgeoa bourgeoa merged commit c59efc0 into main Jun 4, 2026
8 checks passed
@github-project-automation github-project-automation Bot moved this from Ready to Done in SolidOS NLNet UI Jun 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Login not redirecting to the logged in state

3 participants