You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

react-firebase-auth

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-firebase-auth

firebase auth react component

1.0.3
latest
Source
npmnpm
Version published
Weekly downloads
16
77.78%
Maintainers
1
Weekly downloads
 
Created
Source

react-firebase-auth

UNDER ALPHA DEVELOPMENT

react and react-native Google firebase authorization component.

Install

npm install react-firebase-auth

Method

signOut

deleteCurrentUser

Example


import FirebaseAuth from 'react-firebase-auth'

render() {
  return (
    <FirebaseAuth
      twitter
      github
      email
      google={{ scopes: ['https://www.googleapis.com/auth/plus.login'] }}
      facebook={{ scopes: [ 'public_profile', 'email', 'user_likes', 'user_friends' ] }}
      //
      tosUrl='https://www.google.com'
      apiKey='YOUR_API_KEY'
      authDomain='your-app.firebaseapp.com'
      databaseURL='https://your-app.firebaseio.com'
      storageBucket='your-app.appspot.com'
      //
      onAuthStateChanged={user => {
        console.log(user)
      }}
    />
  )
}

License

MIT

Author

Yusuke Shibata

FAQs

Package last updated on 06 Jan 2017

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