firebase-authentication

Cannot create PhoneAuthCredential without either verificationProof, sessionInfo, temporary proof, or enrollment ID

不打扰是莪最后的温柔 提交于 2021-01-03 07:01:53
问题 I'm working on firebase phone authentication, after receiving code on my phone number the code jumps to verifysignincode() method, it fails to create phoneAuthCredentials . The exception which program catches is "Cannot create PhoneAuthCredential without either verificationProof , sessionInfo , temporary proof, or enrollment ID." This is my send code method: public void send_code(){ mCallbacks = new PhoneAuthProvider.OnVerificationStateChangedCallbacks() { @Override public void onCodeSent(

Cannot create PhoneAuthCredential without either verificationProof, sessionInfo, temporary proof, or enrollment ID

女生的网名这么多〃 提交于 2021-01-03 07:01:37
问题 I'm working on firebase phone authentication, after receiving code on my phone number the code jumps to verifysignincode() method, it fails to create phoneAuthCredentials . The exception which program catches is "Cannot create PhoneAuthCredential without either verificationProof , sessionInfo , temporary proof, or enrollment ID." This is my send code method: public void send_code(){ mCallbacks = new PhoneAuthProvider.OnVerificationStateChangedCallbacks() { @Override public void onCodeSent(

No virtual method verifyPhoneNumber, FATAL EXCEPTION: main

孤街醉人 提交于 2021-01-02 06:08:11
问题 After updating the libraries into the Gradle file, I run into this error after trying to authenticate through the phone number. --------- beginning of crash 2020-11-04 00:33:11.574 23042-23042/com.roko.hearth E/AndroidRuntime: FATAL EXCEPTION: main Process: com.roko.hearth, PID: 23042 java.lang.NoSuchMethodError: No virtual method verifyPhoneNumber(Ljava/lang/String;JLjava/util/concurrent/TimeUnit;Ljava/util/concurrent/Executor;Lcom/google/firebase/auth/PhoneAuthProvider

Firebase Auth - createUserWithEmailAndPassword() - prevent login until email is verified

断了今生、忘了曾经 提交于 2021-01-02 05:03:45
问题 I wish to create a user account in Firebase Auth using createUserWithEmailAndPassword() - without logging in the user. I wish for the user to verify the email address first. Signing in the user directly causes a lot of unwanted side effects. The /signup page has the following code - I wish for the user to stay on the /signup page after registration to be able to see the registration message. firebase.auth().createUserWithEmailAndPassword(data.email, data.password) .then((user)=> { //Send

Firebase Auth - createUserWithEmailAndPassword() - prevent login until email is verified

痴心易碎 提交于 2021-01-02 05:03:29
问题 I wish to create a user account in Firebase Auth using createUserWithEmailAndPassword() - without logging in the user. I wish for the user to verify the email address first. Signing in the user directly causes a lot of unwanted side effects. The /signup page has the following code - I wish for the user to stay on the /signup page after registration to be able to see the registration message. firebase.auth().createUserWithEmailAndPassword(data.email, data.password) .then((user)=> { //Send

How to restrict email domains in Firebase Authentication

邮差的信 提交于 2021-01-01 06:41:26
问题 I have a question regarding firebase authentication. Actully I am making a dashboard for my company, and I will host it in firebase. I want to restrict the email authentication only to my comany domain (ex: cat.com). But I went through the stackoverflow answers and I found I can impose rule in database. But the issue is that I will be calling external databases to fetcj data using Firebase Function and serve it to website(dashboard). So no domain specific rule will apply there. Below is the

How to restrict email domains in Firebase Authentication

落爺英雄遲暮 提交于 2021-01-01 06:40:20
问题 I have a question regarding firebase authentication. Actully I am making a dashboard for my company, and I will host it in firebase. I want to restrict the email authentication only to my comany domain (ex: cat.com). But I went through the stackoverflow answers and I found I can impose rule in database. But the issue is that I will be calling external databases to fetcj data using Firebase Function and serve it to website(dashboard). So no domain specific rule will apply there. Below is the

What are the exact steps to enable safetynet device check api on Android

◇◆丶佛笑我妖孽 提交于 2020-12-31 08:46:49
问题 I have integrated firebase phone authentication in my android app. It was working fine for almost 2 months and suddenly from 2-3 days back I am observing different behavior. Capcha screen started appearing. Earlier I had not enabled safetynet device check API. Looking at firebase documentation I treid enabling safetynet device check. As the steps are not clear, I am not sure if I did it right. I am also not clear how firebase and google cloud are linked. How firebase will know which google

How can I disable smart lock for passwords auto login request after Firebase Auth UI sign out?

血红的双手。 提交于 2020-12-29 17:09:01
问题 I'm building a single activity Android app in an attempt to follow Google's recommendations. I'm using FirebaseAuth UI for authentication which apparently uses 'Smart Lock for Passwords' to save the credentials into your google account. My sign out function looks like this: private fun signOutUser(){ AuthUI.getInstance() .signOut(this) .addOnCompleteListener { Timber.i("Sign out completed") } sharedViewModel.setUser(null) } However, once the sign out finishes, the UI immediately starts the

How can I disable smart lock for passwords auto login request after Firebase Auth UI sign out?

烈酒焚心 提交于 2020-12-29 17:01:36
问题 I'm building a single activity Android app in an attempt to follow Google's recommendations. I'm using FirebaseAuth UI for authentication which apparently uses 'Smart Lock for Passwords' to save the credentials into your google account. My sign out function looks like this: private fun signOutUser(){ AuthUI.getInstance() .signOut(this) .addOnCompleteListener { Timber.i("Sign out completed") } sharedViewModel.setUser(null) } However, once the sign out finishes, the UI immediately starts the