Answer: How do I retrieve user information once the user is created and navigate to a different screen

Stephen Muindi - Feb 9 - - Dev Community

By the time your val currentUser = mAuth.currentUser runs, the user may not have been set yet. If you want to make sure that you get notified of the user, use an auth state change listener:

mAuth.addAuthStateListener(new FirebaseAuth.AuthStateListener() {
    @Override
    public void onAuthStateChanged(@NonNull FirebaseAuth firebaseAuth) {
        currentUser = mAuth.getCurrentUser()
        currentUserID
. . . . . . . . . . .
Terabox Video Player