You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Correct me if I'm wrong, but I believe currently the only way to make the user$ observable return a value is to call the loadUserInfo method?
Would it be possible to allow loading this info based on the returned id_token or alternatively to provide a way to set the value of the underlying _userSubject Subject?
FYI: My current solution is to hook into the events, then get the user data based on the token and either:
a) "hack" into the AuthService and access the private Subject or
b) Move everything in a separate service, which exposes its own user$ observable.
Correct me if I'm wrong, but I believe currently the only way to make the
user$
observable return a value is to call theloadUserInfo
method?Would it be possible to allow loading this info based on the returned id_token or alternatively to provide a way to set the value of the underlying
_userSubject
Subject?FYI: My current solution is to hook into the events, then get the user data based on the token and either:
a) "hack" into the AuthService and access the private Subject or
b) Move everything in a separate service, which exposes its own user$ observable.
I went for option b:
The text was updated successfully, but these errors were encountered: