I do not allow only user access to a specific site. What is the correct way to verify user login at boot time?
The code below is my first attempt, I really don't know if this works. Of course, I already wrote db rules, now I want the user to visually execute the behavior.
this.af.auth.subscribe(auth => { if (auth) { //route to other view } else { //do whatever } });
angular firebase firebase-authentication angularfire2
sandrooco
source share