(email:string, password:string)
| 97 | //// Email/Password Auth //// |
| 98 | |
| 99 | emailSignUp(email:string, password:string) { |
| 100 | return this.afAuth.auth.createUserWithEmailAndPassword(email, password) |
| 101 | .then((user) => { |
| 102 | this.authState = user |
| 103 | this.updateUserData() |
| 104 | }) |
| 105 | .catch(error => console.log(error)); |
| 106 | } |
| 107 | |
| 108 | emailLogin(email:string, password:string) { |
| 109 | return this.afAuth.auth.signInWithEmailAndPassword(email, password) |