Skip to content

Commit

Permalink
Merge pull request #66 from NerdsvilleCEO/develop
Browse files Browse the repository at this point in the history
Update auth references
  • Loading branch information
codediodeio committed Aug 11, 2018
2 parents 9d74dab + f5c61e2 commit 595cddc
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/app/core/auth.service.ts
Expand Up @@ -2,6 +2,7 @@ import { Injectable } from '@angular/core';
import { Router } from '@angular/router';

import { firebase } from '@firebase/app';
import { auth } from 'firebase';
import { AngularFireAuth } from 'angularfire2/auth';
import {
AngularFirestore,
Expand Down Expand Up @@ -45,22 +46,22 @@ export class AuthService {
////// OAuth Methods /////

googleLogin() {
const provider = new firebase.auth.GoogleAuthProvider();
const provider = new auth.GoogleAuthProvider();
return this.oAuthLogin(provider);
}

githubLogin() {
const provider = new firebase.auth.GithubAuthProvider();
const provider = new auth.GithubAuthProvider();
return this.oAuthLogin(provider);
}

facebookLogin() {
const provider = new firebase.auth.FacebookAuthProvider();
const provider = new auth.FacebookAuthProvider();
return this.oAuthLogin(provider);
}

twitterLogin() {
const provider = new firebase.auth.TwitterAuthProvider();
const provider = new auth.TwitterAuthProvider();
return this.oAuthLogin(provider);
}

Expand Down Expand Up @@ -112,7 +113,7 @@ export class AuthService {

// Sends email allowing user to reset password
resetPassword(email: string) {
const fbAuth = firebase.auth();
const fbAuth = auth();

return fbAuth
.sendPasswordResetEmail(email)
Expand Down

0 comments on commit 595cddc

Please sign in to comment.