Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- signUp (data) {
- return oneFunction(username).then((usernameExist) => {
- return firebaseAuth.createUserWithEmailAndPassword(email, password).then((user) => {
- firebaseDb.ref('users/' + user.uid + '/public/').set(userData).then()
- utils.updateUsernameMapping(username, user.uid).then()
- return user.updateProfile({
- displayName: displayName
- }).then(function () {
- return user
- }, error => {
- return error
- })
- })
- }).catch(error => {
- throw error
- })
- }
- userPromise
- .then()
- .then()
- .then();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement