Skip to content
Advertisement

Tag: firebase-authentication

Firebase email+password authentication in Java

I’m trying to use Firebase email and password authentication in Java using their REST API, as their Admin SDK doesn’t provide the needed methods to log in etc., only user management methods. With help from this answer, I’ve managed to put together the following code, which works for correct credentials but when trying to handle errors e.g. USER_NOT_FOUND or INVALID_PASSWORD,

Setting DisplayName on Register for Firebase

UserProfileChangeRequest(java.lang.String, java.lang.String, boolean, boolean)’ is not public in ‘com.google.firebase.auth.UserProfileChangeRequest’. Cannot be accessed from outside package and Register.java:85: error: constructor UserProfileChangeRequest in class UserProfileChangeRequest cannot be applied to given types; UserProfileChangeRequest profileUpdates = new UserProfileChangeRequest().Builder().setDisplayName(username).build(); ^ required: String,String,boolean,boolean found: no arguments reason: actual and formal argument lists differ in length I’m getting the above error from trying to set the display

Why do we have to call getCurrentUser() several times Firebase?

I am creating a Journal app. I am currently working on the functionality for if the user is already logged in—bypass the “get started/log in activities” In the video I am watching to create a journal app, the instructor calls mUser = firebaseAuth.getCurrentUser(); several times. He calls it in onStart(), in onCreate() and in onAuthStateChanged(). I can understand why we

Firebase Authentication email

Currently, I am working on an Android project. I started the project with sign up and login pages using Firebase. It goes like this: A new user enters the required details with email and password as login credentials. Meanwhile, a verification mail is sent to the provided email address, the user needs to verify the authentication by following the link

Firebase authentication works only on debug version

I have an app on google play: https://play.google.com/store/apps/details?id=com.conta.ftof and I have a big problem. I can’t get firebase authentication with phone number to work on the signed version. in fact, it works only with the debug version (when in the release version I insert the number and click the send button, the toast is returned: unknown error) … Precisely for

Advertisement