solid / solid

Solid - Re-decentralizing the web (project directory)

Home Page:https://solidproject.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

solid-auth-client doesn't obtain session right after login

thopras opened this issue · comments

Hello,

I'm working on the solid angular app and have the following issue:

After login I get the following error:
Error fetching data: TypeError: Cannot read property 'webId' of null
CardComponent.html:44 ERROR TypeError: Cannot read property 'fn' of undefined

This happens because it seems that right after the login there is no session available and therefore no webid.
The RdfService object runs the GetProfile method in which it tries to get a session from the solid-auth-client.
Then the fetcher tries to load the profile with the webId from the current session.
The weird thing is that the fetcher is executed allthough there is no session available.
This happens only on the first request right after log in. When I refresh (F5) then the session is available and the properties are read correctly.

This is not an issue with solid but rather an issue of the implementation of the auth-client.