Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

restrict the user from going to signup or login page if the user is already logged in firebase auth

var user = firebase.auth().currentUser;

if (user) {
  // User is signed in.
} else {
  // No user is signed in.
}
 
PREVIOUS NEXT
Tagged: #restrict #user #signup #login #page #user #logged #firebase #auth
ADD COMMENT
Topic
Name
3+2 =