New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

react-firebase-login

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-firebase-login

A basic login portal that can be used for a react firebase website.

latest
Source
npmnpm
Version
1.2.5
Version published
Maintainers
1
Created
Source

react-firebase-login

A basic login portal that can be used for a react firebase website.

Usage

Ensure Firebase has been initialized before anything else is done.

const {LoginPortal} = import('react-firebase-login');

const withLogin = (component) => {
    return () => (
      <LoginPortal>
        {component}
      </LoginPortal>
    );
}
// ...
// Route to it
// ...
<Route path={SOME_ROUTE} render={withLogin(<SomeScreen/>)}/>

You may also use only the LoginContent component and place it within your own login screen like:

const {LoginContent} = import('react-firebase-login');

Firebase config for test environment:

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.

For Developer

Remember to npm run build before npm publish.

Keywords

react

FAQs

Package last updated on 02 Apr 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts