-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Working FirebaseUI Package for React and Next.js #1067
Comments
A big part of our motivation for rebuilding this component is that this We built Here's the minimal code to try it out: import { getAuth } from "firebase/auth";
import dynamic from "next/dynamic";
const FirebaseUIReact = dynamic(() => import("firebaseui-react"), {
ssr: false,
});
// soon, just:
// import FirebaseUIReact from "firebaseui-react";
export default function AuthComponent() {
const auth = getAuth();
const config = {
// link back to this page for password resets
continueUrl: document.location.href,
signInOptions: ["emailpassword", "google.com"],
};
return <FirebaseUIReact auth={auth} config={config} />
} which would give you: PRs and feature requests are welcome! |
Hi @Taoula and @christiangenco, very cool, thank you for open sourcing this! Would you like to advertise on https://github.com/firebase/firebaseui-web-react as well? Longer term, we are working on a web-components-based replacement for the current FirebaseUI library so that all frameworks can be supported, but I think your library could be a great solution for React developers. |
@Taoula and @christiangenco, great work! Thanks. Two questions:
|
@artemis-prime 1. Oh yup that's a great idea. @Taoula can you do that please? :D
|
Hi @christiangenco I am interested in raising pr for converting to reusable react components |
Hey everybody! @christiangenco and I have rebuilt FirebaseUI as a React component under the npm package
firebaseui-react
. It works more or less the same way (though I would still recommend looking through the documentation before trying to reuse an existing configuration). If you're having trouble getting the original FirebaseUI to work on your project, come check us out!Our component supports:
Links
npm
Github
demo
The text was updated successfully, but these errors were encountered: