Guest User

Untitled

a guest
Jun 21st, 2018
1,315
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. signInRegular(email, password) {
  2. const credential = firebase.auth.EmailAuthProvider.credential(email, password);
  3. return this.afAuth.auth.signInWithEmailAndPassword(email, password)
  4. }
  5.  
  6.  
  7. emailSignUp(email: string, password: string) {
  8. return this.afAuth.auth.createUserWithEmailAndPassword(email, password).then(user => {
  9. this.userDetails = user;
  10. console.log(this.userDetails);
  11. }).catch(error => error);
  12. }
  13.  
  14. signInWithFacebook() {
  15. this.auth.signInWithFacebook().then((res) => {
  16. console.log("Authenticated with Facebook")
  17. }).catch((err) => console.log(err));
  18. }
Add Comment
Please, Sign In to add comment