Horje
javascript firebase kicks out current user Code Example
javascript firebase kicks out current user
// Have a second app using the same creds to create the user
// This eliminates the fact that firebase signs out the current user
// when a new one is created.
var config = {apiKey: "apiKey",
    authDomain: "projectId.firebaseapp.com",
    databaseURL: "https://databaseName.firebaseio.com"};
var secondaryApp = firebase.initializeApp(config, "Secondary");

secondaryApp.auth().createUserWithEmailAndPassword(em, pwd).then(function(firebaseUser) {
    console.log("User " + firebaseUser.uid + " created successfully!");
    //I don't know if the next statement is necessary 
    secondaryApp.auth().signOut();
});




Javascript

Related
//Splice remove and add new elements in an array in javascript Code Example //Splice remove and add new elements in an array in javascript Code Example
Show and Hide element in react Code Example Show and Hide element in react Code Example
javascript regex zero or more occurrence Code Example javascript regex zero or more occurrence Code Example
React native-base DatePicker comes up Minimized on iOS Asked Code Example React native-base DatePicker comes up Minimized on iOS Asked Code Example
leetcode reverse interger solution Code Example leetcode reverse interger solution Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
7