AuthGate
component instead, as seen in the quick example. useAuthGate
is the hook that is used by the AuthGate
.AuthGate
component and didn't want to use AuthGate
itself. onAuthStateChanged:
Optional function called whenever the auth state changes. Receives one argument: user
, which is either null
or a firebase user object.user
either a firebase.User
or null
loading
a boolean that tells you whether or not the auth listener is loading initially.