Skip to content

checked login status#726

Open
SharonStrats wants to merge 5 commits intomainfrom
fix/pref-error-msg
Open

checked login status#726
SharonStrats wants to merge 5 commits intomainfrom
fix/pref-error-msg

Conversation

@SharonStrats
Copy link
Contributor

@SharonStrats SharonStrats commented Mar 26, 2026

Ticket #464

This PR resolves the error that comes up in the console when the user logs out and the browser reloads it still tries to get the User Roles which tries to load the preferences. When a user isn't logged in it should just return and not load preferences.

i was able to test this in SolidOS local.

@SharonStrats SharonStrats marked this pull request as ready for review March 26, 2026 09:35
Copilot AI review requested due to automatic review settings March 26, 2026 09:35
Copy link
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

Prevents SolidOS from attempting to load user preferences (and thus roles) after logout/reload when there is no authenticated user, addressing console errors described in issue #464.

Changes:

  • Early-return [] from getUserRoles() when authn.currentUser() is not set.
  • Pass the current user (me) into ensureLoadedPreferences to avoid triggering login/prefs flows unnecessarily.

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

SharonStrats and others added 3 commits March 26, 2026 20:43
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
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