An open API service indexing awesome lists of open source software.

https://github.com/alvaropaco/types-react-firebaseui-localized


https://github.com/alvaropaco/types-react-firebaseui-localized

Last synced: 6 months ago
JSON representation

Awesome Lists containing this project

README

          

# @types/react-firebaseui-localized

This project is just the implementation to typescript of the project
[react-firebaseui-localized](https://www.npmjs.com/package/react-firebaseui-localized);

## Installation
`npm i -s react-firebaseui-localized @types/react-firebaseui-localized`

`yarn add react-firebaseui-localized @types/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

```js
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 (

);
}
```