https://github.com/alvaropaco/types-react-firebaseui-localized
https://github.com/alvaropaco/types-react-firebaseui-localized
Last synced: 6 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/alvaropaco/types-react-firebaseui-localized
- Owner: alvaropaco
- License: mit
- Created: 2021-05-27T18:34:01.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-05-28T17:52:24.000Z (over 4 years ago)
- Last Synced: 2025-04-06T03:43:23.358Z (9 months ago)
- Language: JavaScript
- Size: 90.8 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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 (
);
}
```