You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I know this isn't a Firestore request, but I'm guessing a lot of people who use this package would appreciate a component with a similar API to expose the state of Firebase Auth. (I know I would.)
Sample usage:
import{FirebaseAuth}from'react-firestore'<FirebaseAuth>{({error, isLoading, auth})=>{if(error){return'error logging you in'}if(isLoading){return'loading account...'}if(!auth){return<LoginButton/>}else{return<UserSummaryuser={auth}/>}}}</FirebaseAuth>
I know this isn't a Firestore request, but I'm guessing a lot of people who use this package would appreciate a component with a similar API to expose the state of Firebase Auth. (I know I would.)
Sample usage:
Something like this could work: https://github.com/sampl/firefly/blob/master/src/data/AuthProvider.js
What do you think @green-arrow?
The text was updated successfully, but these errors were encountered: