-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error cannot fetch your preferences when not logged in #464
Comments
Hi @bourgeoa I'm wondering what would the expected behavior be? Should we just be told that we are not logged in? I also can't seem to recreate it. I'm wondering if you could show the steps you took to produce it. I logged in, went to preferences, logged out and it just refreshes and goes to my public data. |
@SharonStrats Profile and public preferences should be available.
Logging out do not clear public preferences |
maybe this is a good first issue to wrap my head around. what is the desired behaviour ? being in which state and doing what exact steps shows the error ? |
@ewingson |
Since we are not logged in, it should not even try to read the preference file. The check to see if the user is logged in should happen before, in the code. @jeff-zucker am I correct to say that the app should not even look for it? |
Yes, I believe that is correct, the preferencesFile is private and can only be accessed when logged in so there is no point in looking for it if not logged in. I believe the correct behavior is
|
This was also discussed in SolidOS team meeting (see under tech topics). |
The error is raised in https://github.com/solid/solid-ui/blob/6a9e81a980072cb7f7b8e8098346bd1acac55269/src/authn/authn.ts#L219
This is caused by calling
solidLogicSingelton
without being logged inThe text was updated successfully, but these errors were encountered: