Code Monkey home page Code Monkey logo

Comments (12)

EddyVerbruggen avatar EddyVerbruggen commented on July 21, 2024

Did you enable email/password authentication in your Firebase console?

from nativescript-plugin-firebase.

cescoferraro avatar cescoferraro commented on July 21, 2024

fire
firebase

from nativescript-plugin-firebase.

cescoferraro avatar cescoferraro commented on July 21, 2024

@EddyVerbruggen its my first time using this new firebase console. But it seems activated

from nativescript-plugin-firebase.

EddyVerbruggen avatar EddyVerbruggen commented on July 21, 2024

It does indeed - what's the errorMessage in the popup you see after createUser fails?

from nativescript-plugin-firebase.

cescoferraro avatar cescoferraro commented on July 21, 2024

firebase

from nativescript-plugin-firebase.

shripalsoni04 avatar shripalsoni04 commented on July 21, 2024

I was also getting the same error. In my case the issue was I was entering password as "test", and due to that firebase was returning FirebaseAuthWeakPasswordException (firebase excepts at-least 6 character password.)

Similarly firebase will also throw an exception, if email is malformed or user with the email is already exists.

You can check the proper error by doing below changes in firebase.android.js file.

Inside createUser method, instead of returning message Creating a user failed, we can send message like Creating a user failed + task.getException().getReason() as shown below.

var onCompleteListener = new com.google.android.gms.tasks.OnCompleteListener({
          onComplete: function (task) {
            if (!task.isSuccessful() && task.getException()) {
              reject("Creating a user failed. " + (task.getException().getReason ? task.getException().getReason() : task.getException()));
            } else {
              // the AuthStateListener.onAuthStateChanged callback will resolve the promise
            }
          }
});

For reference: https://firebase.google.com/docs/reference/android/com/google/firebase/auth/FirebaseAuth#public-methods

It will be great if we can accommodate this change in the plugin. So it will be very useful to other users also.

from nativescript-plugin-firebase.

EddyVerbruggen avatar EddyVerbruggen commented on July 21, 2024

Thanks, added something similar in my current dev version, will land in the next release.

from nativescript-plugin-firebase.

cescoferraro avatar cescoferraro commented on July 21, 2024

Why closing this? Firebase has 8 letters. Why would that happen for me? @EddyVerbruggen

from nativescript-plugin-firebase.

EddyVerbruggen avatar EddyVerbruggen commented on July 21, 2024

Better to ask the creator of the SDK - if they think 'Firebase' is not a strong password for a Firebase user then that's on them, right? This issue was about exposing the error to the plugin dev which will be done in the next release.

from nativescript-plugin-firebase.

cescoferraro avatar cescoferraro commented on July 21, 2024

@EddyVerbruggen yeah! makes sense. thanks

from nativescript-plugin-firebase.

NathanWalker avatar NathanWalker commented on July 21, 2024

@cescoferraro did you ever get past this by changing password to something stronger?
I'm encountering same thing with a password that is def more than 6 characters and should be consider strong... What ended up working for you. I still see this error when trying to use createUser:

Error Domain=FIRAuthErrorDomain Code=17999 "An internal error has occurred, print and inspect the error details for more information." UserInfo={error_name=ERROR_INTERNAL_ERROR, NSUnderlyingError=0x7e62b130 {Error Domain=FIRAuthInternalErrorDomain Code=2 "(null)"}, NSLocalizedDescription=An internal error has occurred, print and inspect the error details for more information.}

from nativescript-plugin-firebase.

NathanWalker avatar NathanWalker commented on July 21, 2024

Nvm, it all sudden started working, so strange. Ok all good here 👍

from nativescript-plugin-firebase.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.