Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- firebase.auth().onAuthStateChanged(function(user) {
- if (!user) {
- // User is not signed in.
- window.location.href = "login.html";
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement