Skip to content

React wrapper over firebaseui package with simpler localization

License

Notifications You must be signed in to change notification settings

shiiinji/react-firebaseui-localized

 
 

Repository files navigation

react-firebaseui-localized

React wrapper over firebaseui package with simpler localization

npm i -s react-firebaseui-localized

I don't want to build for each language so I get it through the cdn and thats the lib :)
see: https://github.com/firebase/firebaseui-web

usage

import FirebaseUIAuth from "react-firebaseui-localized";

import firebase from "firebase/app";
import "firebase/auth";

const firebaseApp = firebase.initializeApp(/* your firebase keys */);

const config = {
  signInFlow: "popup",
  signInSuccessUrl: "/home",
  signInOptions: [
    firebase.auth.GoogleAuthProvider.PROVIDER_ID,
    firebase.auth.FacebookAuthProvider.PROVIDER_ID
  ],
  tosUrl: "/terms-of-service",
  privacyPolicyUrl: "/privacy-policy"
};

function Login() {
  return (
    <FirebaseUIAuth
      lang="pt_br"
      config={config}
      auth={firebaseApp.auth()}
      firebase={firebase}
    />
  );
}

About

React wrapper over firebaseui package with simpler localization

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%