Firebase authentication issue

Hi, i have an issue with the authentication in firebase. I’m actually using unity 2019.2 and the firebase sdk 6.6.0. Here the code i use for authentication

public void Login(string username, string password, Action callback)
    {
        auth.SignInWithEmailAndPasswordAsync(username, password).ContinueWith(task =>
        {
            if (task.IsCanceled)
            {
                InfoPanel.main.ShowError(1);
                return;
            }
            if (task.IsFaulted)
            {  
                InfoPanel.main.ShowMessage(3);
                return;
            }

            if (auth.CurrentUser.IsEmailVerified)
            {
                callback?.Invoke();
            }
            else
            {
                InfoPanel.main.ShowError(2);
            }
        }, TaskScheduler.FromCurrentSynchronizationContext());
    }

private void AuthStateChanged(object sender, EventArgs eventArgs)
   {
       if (auth.CurrentUser != CurrentUser)
       {
           bool signedIn = CurrentUser != auth.CurrentUser && auth.CurrentUser != null;
           if (!signedIn && CurrentUser != null)
           {              
               LoadScene(StringRepository.LOGIN_SCENE);
           }
           CurrentUser = auth.CurrentUser;
           if (signedIn)
           {  
               userRef = database.GetReference(USERS).Child(CurrentUser.UserId);         
               LoadScene(StringRepository.MENU_SCENE, true);
           }
       }
   }

The problem is that on Android i have a long delay(~1min) before the scene starts loading. Do you have any idea on how to solve this issue? Thanks

I came here looking for a resolution for the delay problem although I’m not using Unity, let me know if you ever resolved this, but my app doesn’t log on at all, it just sits there