import {AuthMethods, AuthProviders, AngularFire, FirebaseRef, FirebaseAuthState} from "angularfire2";
import {AuthMethod} from "./auth-method";
import {Injectable, Inject} from "@angular/core";
@Injectable()
export class GoogleAuth implements AuthMethod{

  name: string = 'Google';

  constructor(private firebase: AngularFire){
  }

  login(){
    return this.firebase.auth.login({
      provider: AuthProviders.Google,
      method: AuthMethods.Popup
    });
  }
}
