在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):greg-schrammel/react-firebaseui-localized开源软件地址(OpenSource Url):https://github.com/greg-schrammel/react-firebaseui-localized开源编程语言(OpenSource Language):JavaScript 100.0%开源软件介绍(OpenSource Introduction):react-firebaseui-localizedReact wrapper over firebaseui package with simpler localization
I don't want to build for each language so I get it through the cdn and thats it :) usageimport 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
/>
);
} |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论