-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Closed
Description
Hi,
I was playing around with the Auth service, and I discovered a weird behavior...
Most of the time, when trying to log in using any provider (see screenshot), I always receive two streams values:
- The first one contains the correct auth info;
- A second one with a
nullvalue!! (which means that the user is not logged in).
However, after refreshing the app (i.e. hitting F5), I get one event back with the right session info:
And, when logging out, the app receives a null value, which is the expected behavior ofc:
Here is a portion of my code:
this.af.auth.subscribe(
user => {
if(user) {
this.isAuth = true;
}
else {
this.isAuth = false;
}
},
error => {
console.trace(error);
}
);
Any idea?
afmeva, vkniazeu and theblindprophet


