1. Are you ready for the Galaxy S20? Here is everything we know so far!

Firebase authentication succeeds and yet doesn't work

Discussion in 'Android Development' started by AsafKov, Oct 1, 2021.

  1. AsafKov

    AsafKov Newbie
    Thread Starter

    Hello, I've ran into this problem today and it drives me nuts, any help would be appreciated.

    I'm using Firebase authentication with email and password, the user is created and appears in the Firebase console, but FirebaseAuth.getCurrentUser() as well as task.getResult().getUser() returns some Default user and not the one just created.

    I've checked the currentUser immediately after registering a new user, after registering and moving to a different fragment, after putting the app in the background, after killing and restarting the app, after using firebase sign in method...

    Everything seemingly works otherswise, the firebase methods (sign in and register with email and password) result success and as I said the user shows up on the firebase console.

    I tried deleting the Firebase project and creating a new on for the app, it didn't help.

    There's nothing in the logcat whatsoever that indicates something is going wrong in the process. The only firebase related logs I see after registering\logging in are:
    2021-10-01 18:48:44.409 11933-11977/com.app.app D/FirebaseAuth: Notifying id token listeners about user ( Ap5hU8qtQdcTdO4KwQbqA3xxrvV2).
    2021-10-01 18:48:44.410 11933-11977/com.app.app D/FirebaseAuth:Notifying auth state listeners about user (Ap5hU8qtQdcTdO4KwQbqA3xxrvV2 ).
     


    #1 AsafKov, Oct 1, 2021
    Last edited: Oct 1, 2021

    1. Download the Forums for Android™ app!


      Download

       
Loading...
Similar Threads - Firebase authentication succeeds
  1. werner111
    Replies:
    6
    Views:
    948
  2. Boris_yo
    Replies:
    1
    Views:
    475
  3. rowlanda38
    Replies:
    1
    Views:
    823
  4. Marcell Tanure
    Replies:
    0
    Views:
    856
  5. nurulaida
    Replies:
    0
    Views:
    657
  6. willy macharia
    Replies:
    0
    Views:
    992
  7. Macbeth Isack
    Replies:
    1
    Views:
    1,259
  8. Milo Williamson
    Replies:
    5
    Views:
    720
  9. Thiha Ko Ko
    Replies:
    0
    Views:
    1,268
  10. ibrmrt
    Replies:
    0
    Views:
    1,087

Share This Page

Loading...