import firebase , { firebaseAuth } from 'src/firebase' ; export const observeUser = ( nextValue ) : firebase . Unsubscribe => firebaseAuth . onAuthStateChanged ( ( user ) => { nextValue ( user ) ; } ) ; export const signOutCurrentUser = ( ) : Promise < void > => firebaseAuth . signOut ( ) ;