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

firebase-login-manager

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

firebase-login-manager

A login manager to handle the state of the user in a firebase website.

latest
Source
npmnpm
Version
1.1.7
Version published
Maintainers
1
Created
Source

firebase-login-manager

A login manager to handle the state of the user in a firebase website.

Usage

Construct the LoginManager at a high-level in your application. The first constructor parameter is handleRedirects. Set it to true for your main login manager to handle email/federated logins with that login manager. The second parameter is toastRelay which is optional and comes from react-root-overlays package.

The public functions of the LoginManager are:

async awaitUser: returns the user or null. addListener: Add a listener that receives the up-to-date user. removeListener: Remove the listener. loginWithEmail: Request a email be sent that allows for logging in with email. loginWithGoogle: Start a federated Google login. logout: Logout destruct: Cleanup the login manager.

For Developer

Remember to npm run build before deploying.

Keywords

firebase

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