I found a problem with your code that fixed issue with my on refreshing the browser and losing the data which I struggled for weeks.
change this:
private user: User = null;
this this:
private user: User;
What I found is that this fire on initialization and when you refresh browser and it is injected as a provider it will reset the value. Ultimately thinking your are logged in on the back end, but not actually loggedin on the front end because you can't retrieve any user data.
Hi,
I found a problem with your code that fixed issue with my on refreshing the browser and losing the data which I struggled for weeks.
change this:
private user: User = null;
this this:
private user: User;
What I found is that this fire on initialization and when you refresh browser and it is injected as a provider it will reset the value. Ultimately thinking your are logged in on the back end, but not actually loggedin on the front end because you can't retrieve any user data.