android - Google API identify toolkit returning configuration_not_found -


while trying login firebase account using custom token, error shows. cause of error?

07-25 15:04:16.523  2357   811 e volley  : [448] basicnetwork.performrequest: unexpected response code 400 https://www.googleapis.com/identitytoolkit/v3/relyingparty/verifycustomtoken?key={token_code} 07-25 15:04:16.524  2357  2530 authchimeraservice: error description received server: { 07-25 15:04:16.524  2357  2530 authchimeraservice:  "error": { 07-25 15:04:16.524  2357  2530 authchimeraservice:   "errors": [ 07-25 15:04:16.524  2357  2530 authchimeraservice:    { 07-25 15:04:16.524  2357  2530 authchimeraservice:     "domain": "global", 07-25 15:04:16.524  2357  2530 authchimeraservice:     "reason": "invalid", 07-25 15:04:16.524  2357  2530 authchimeraservice:     "message": "configuration_not_found" 07-25 15:04:16.524  2357  2530 authchimeraservice:    } 07-25 15:04:16.524  2357  2530 authchimeraservice:   ], 07-25 15:04:16.524  2357  2530 authchimeraservice:   "code": 400, 07-25 15:04:16.524  2357  2530 authchimeraservice:   "message": "configuration_not_found" 07-25 15:04:16.524  2357  2530 authchimeraservice:  } 07-25 15:04:16.524  2357  2530 authchimeraservice: } 07-25 15:04:16.524  2357  2530 d authintentchimeraservice: finished operation: << dms (350ms elapsed) 

my current code

mauth = firebaseauth.getinstance();         mauth.signinwithcustomtoken(mcustomtoken)                 .addoncompletelistener(this, new oncompletelistener<authresult>() {                     @override                     public void oncomplete(@nonnull task<authresult> task) {                         log.d("d", "signinwithcustomtoken:oncomplete:" + task.issuccessful());                          if (!task.issuccessful()) {                             log.w("d", "signinwithcustomtoken", task.getexception());                             toast.maketext(mainactivity.this, "authentication failed.",                                     toast.length_short).show();                         }                     }                 }); 

fixed adding gradle

compile 'com.google.firebase:firebase-core:9.2.1' 

Comments

Popular posts from this blog

jOOQ update returning clause with Oracle -

java - Warning equals/hashCode on @Data annotation lombok with inheritance -

java - BasicPathUsageException: Cannot join to attribute of basic type -