How to use the angularfire2.AuthProviders.Anonymous function in angularfire2

To help you get started, we’ve selected a few angularfire2 examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github YourName-App / MyDiary / src / providers / auth-service.ts View on Github external
anonymousLogin() {
    return this.af.auth.login({
      provider: AuthProviders.Anonymous,
      method: AuthMethods.Anonymous,
    });
  }
github cjsheets / angular-voting-app / src / app / navbar / firebase.credential.ts View on Github external
import { AngularFireModule, AuthMethods, AuthProviders } from "angularfire2";

export const afConfig = {
  apiKey: "AIzaSyCOm8FwfjmIjHqLwpKvMfDCvrv1e58Tkt4",
  authDomain: "fcc-chadsheets-com.firebaseapp.com",
  databaseURL: "https://fcc-chadsheets-com.firebaseio.com",
  storageBucket: "fcc-chadsheets-com.appspot.com",
  messagingSenderId: "487755790032"
};

export const afAuthConfig = {
      provider: AuthProviders.Anonymous,
      method: AuthMethods.Anonymous
};