Nonvoluntary Professional Mangling

    react-firebase-auth

    1.0.3 • Public • Published

    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

    Keywords

    none

    Install

    npm i react-firebase-auth

    DownloadsWeekly Downloads

    30

    Version

    1.0.3

    License

    MIT

    Last publish

    Collaborators

    • yusukeshibata