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

  name: string = 'Anonymously';

  constructor(private firebase: AngularFire){
  }

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