firebase-authentication

Phone verification otp message not receiving in singed apk only working in debug apk

六眼飞鱼酱① 提交于 2020-01-06 06:37:27
问题 I integrated Firebase mobile verification in my Android app, but it's only working in the debug APK; and not in the release apk (otp not receiving in release version) implementation 'com.google.firebase:firebase-auth:16.0.2' Also, I generated SHA1 and pasted in Firebase config, and my google-service.json is the latest one. 回答1: From this answer. Get SHA-1 certificate fingerprint from Developer console and put it in Firebase. 来源: https://stackoverflow.com/questions/53919843/phone-verification

how does onAuthStateChange() works and it's code in kotlin?

余生长醉 提交于 2020-01-06 06:10:46
问题 I am trying to log a message when there is a change in state, but apparently it's not working, I am not sure where I am going wrong. I want to update the UI when the state is changed to user logged in, but for starters I am only trying to log a message. I also don't quiet understand the registering it and unregistering it. This is my login activity's code. val TAG = "LoginActivity" //private var mDatabaseReference: DatabaseReference? = null //private var mDatabase: FirebaseDatabase? = null //

How to get Facebook ID from Firebase Admin?

流过昼夜 提交于 2020-01-06 06:00:13
问题 I'm using Firebase Admin for login in my NodeJs app. Client will login by sending an idToken (which is get from Firebase), and then NodeJs server will get the user by using admin.auth().verifyIdToken(idToken). The result will look like this: { iss: 'https://securetoken.google.com/myapp-5cde1', name: 'Manh Hung', picture: 'https://graph.facebook.com/185960225411xxx/picture', aud: 'xxxxxx-5cde1', auth_time: 1526626xxx, user_id: 'uCxxxxxxxxxxxxxxxQR4d2', sub: 'uCwNoxxxxxxxxxxxxxxuQR4d2', iat:

Can I use Firebase “Phone Number Authentication” feature for the phone number verification purpose?

心不动则不痛 提交于 2020-01-06 05:34:35
问题 I am actually using Firebase Google auth for signing in the user and after that, I want to take the basic details of the user into the database which also includes the mobile number of a user, so my question is can use Phone Number Authentication just to verify the mobile number of user (using OTP) and after that I can store it into database? Thank You! 回答1: If you want to use firebase phone authentication for phone number verification only, according to me you do this but by implementing

Cannot Resolve setCredentials in FirebaseOptions.Builder().setCredentials(…)

*爱你&永不变心* 提交于 2020-01-06 05:26:19
问题 Can not Resolved FirebaseOptions.Builder().setCredentials() i have referred to answers in this link but it did not solve my problem. here's my code: FileInputStream serviceAccount = new FileInputStream("./ServiceAccountKey.json"); FirebaseOptions options = new FirebaseOptions.Builder() .setCredentials(GoogleCredentials.fromStream(serviceAccount)) .setDatabaseUrl("https://imiocr-f4522.firebaseio.com") .build(); FirebaseApp.initializeApp(options); FirebaseApp.initializeApp(options); String

Not able to signIn with google and facebook after deleting data from firebase

南笙酒味 提交于 2020-01-06 05:25:19
问题 After deleting all the database and authenticate users from firebase database. When I am trying to signIn with it again it's showing below error. 08-10 15:56:28.747 7377-7377/io.funswitch.gymmon D/Login Activity: signInWithCredential:failure com.google.firebase.auth.FirebaseAuthInvalidUserException: This user's credential isn't valid for this project. This can happen if the user's token has been tampered with, or if the user isn't for the project associated with this API key. at com.google

Ionic Angular Firebase authentication with Google Plus not working

南楼画角 提交于 2020-01-06 04:51:20
问题 I've spent a lot of time trying to authenticate my users on Firebase with a Google account in my Ionic app. I'm using Ionic 4 with Angular. I'm posting this question and answer with the research I've made because I could not find everything I needed in one place and I had to go through a lot of searches and tries to get the result I wanted. First of all I've tried 2 ways with the firebase packages that lead me nowhere: Having a google provider from firebase: import * as firebase from

Referencing authentication db data in real time db firebase

我只是一个虾纸丫 提交于 2020-01-06 04:50:06
问题 I am making a website with login and registration facility using firebase. I have used firebase "Authentication" database to store the registered users.However, "Authentication" database doesnt store anything other then emailid, password and an auto generated UUID. I need to store more data like username, profile pic etc for a user. I would be using firebase's "real time" database for the same. My question is what is the best practise to do the same. Should I use the UID as primary key from

What is the best way to use async/await inside onAuthStateChanged() of Firebase?

你离开我真会死。 提交于 2020-01-06 04:33:21
问题 I'm using Firebase authentication with async/await in React Native. I'm looking for a better way to await inside firebase function. So my question is What is the best way to use async/await inside firebase.auth().onAuthStateChanged() ? Now, I implement it in this way. Create a async function inside onAuthStateChanged() and call itself. Like the example below... However, I think it looks weird. firebase.auth().onAuthStateChanged(user => { const asyncFunc = async () => { await doSomething(); }

Find whether email and username already exist in Firebase Auth in Flutter App

泄露秘密 提交于 2020-01-06 03:21:48
问题 I am using sign up with email in my Flutter app and using Firebase Authentication for the same. How do I show on the sign up page whether the entered email and username already exist in the database? 回答1: firebase will return that info as an error message: FirebaseAuth.instance.createUserWithEmailAndPassword(email: _email, password: _password).then((user) { // do whatever you want to do with new user object }).catchError((e) { print(e.details); // code, message, details }); if the email