Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- signInRegular(email, password) {
- const credential = firebase.auth.EmailAuthProvider.credential(email, password);
- return this.afAuth.auth.signInWithEmailAndPassword(email, password)
- }
- emailSignUp(email: string, password: string) {
- return this.afAuth.auth.createUserWithEmailAndPassword(email, password).then(user => {
- this.userDetails = user;
- console.log(this.userDetails);
- }).catch(error => error);
- }
- signInWithFacebook() {
- this.auth.signInWithFacebook().then((res) => {
- console.log("Authenticated with Facebook")
- }).catch((err) => console.log(err));
- }
Add Comment
Please, Sign In to add comment