// pu this inside the class 
@Override
protected void onStart() {
    super.onStart();
    FirebaseUser user = FirebaseAuth.getInstance().getCurrentUser();
    if(user != null) {
        //if user is authenticated give him access to the app
    }
}