New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

react-firebaseui-localized

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-firebaseui-localized

React wrapper over firebaseui package with simpler localization

latest
Source
npmnpm
Version
1.2.1
Version published
Maintainers
1
Created
Source

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
    />
  );
}

Keywords

firebase

FAQs

Package last updated on 02 Sep 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts