react-firebase-auth
v1.0.3
Published
firebase auth react component
Downloads
73
Readme
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