A basic login portal that can be used for a react firebase website.
npm install react-firebase-login
const {LoginPortal} = import('react-firebase-login');
const withLogin = (component) => {
return () => (
{component}
);
}
// ...
// Route to it
// ...
)}/>
`
You may also use only the LoginContent component and place it within
your own login screen like:
`
const {LoginContent} = import('react-firebase-login');
`
$3
See FIREBASE_CONFIG_README.md in src/Config.
You add the config file FIREBASE_CONFIG.json at that level.
That config file gets ignored by version control.
$3
Remember to npm run build before npm publish`.