react-firebaseui-localized
TypeScript icon, indicating that this package has built-in type declarations

1.2.1 • Public • Published

react-firebaseui-localized

React wrapper over firebaseui package with simpler localization

npm i -s react-firebaseui-localized

yarn add react-firebaseui-localized

I don't want to build for each language so I get it through the cdn and thats it :)
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"
      rtl // if language is rtl
      version="4.7.3"
      config={config}
      auth={firebaseApp.auth()}
      firebase={firebase} // only if there isn't a firebase instance on the window object already
    />
  );
}

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.2.122latest

Version History

VersionDownloads (Last 7 Days)Published
1.2.122
1.1.11
1.1.01
1.0.81
1.0.72
1.0.61
1.0.51
1.0.41
1.0.31
1.0.21
1.0.11

Package Sidebar

Install

npm i react-firebaseui-localized

Weekly Downloads

33

Version

1.2.1

License

MIT

Unpacked Size

10.2 kB

Total Files

11

Last publish

Collaborators

  • imgreg