Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Firebase UI auth sign in error api exception

Just wondered if anyone is using firebase auth ui 4.2.0

When I start the auth process with a startActivityForResult

I get the error back...

E/AuthUI: A sign-in error occurred.
com.firebase.ui.auth.FirebaseUiException: Error when saving credential. at com.firebase.ui.auth.viewmodel.smartlock.SmartLockHandler$1.onComplete(SmartLockHandler.java:98)

Looks to be something to do with smartlock,

I've looked at some comments on git and this looked to be happening on a previous version but was supposedly fix in 4.2

Anyone else seeing this?

like image 464
aidanmack Avatar asked Sep 26 '18 12:09

aidanmack


1 Answers

  1. Did you add your debug SHA1 fingerprint to Firebase Console?
  2. By default, FirebaseUI uses Smart Lock for Passwords to store the user's credentials and automatically sign users into your app on subsequent attempts. Try setting it off by writing:

    startActivityForResult(
        AuthUI.getInstance()
            .createSignInIntentBuilder()
            .setIsSmartLockEnabled(false)
            .build(),
        RC_SIGN_IN);
    

You can read more about Smart Lock for Passwords on Android here : https://developers.google.com/identity/smartlock-passwords/android/

And you can read about different implementations of the Smart Lock with the FirebaseUI here : https://github.com/firebase/FirebaseUI-Android/blob/master/auth/README.md#smart-lock

like image 150
Hadas Avatar answered Sep 21 '22 08:09

Hadas