firebase-authentication

How to authenticate a firebase user from server without client side auth?

杀马特。学长 韩版系。学妹 提交于 2020-01-31 05:41:45
问题 I have an API which uses the node admin sdk to connect and call to firebase. My clients hit my api for all the things they need. I do not want them to have to call out to firebase to authenticate directly because I want the client code decoupled from the api and backend. How can the server authenticate them? Based on current docs even at minimum clients must provide their uid to the api (which assumes they authenticated on their own, right?). Ideally, the clients would provide username and

FireBase authentication benefits

北城余情 提交于 2020-01-30 12:40:28
问题 This question might sound silly to some, my scenario was that i had to implement facebook login in my mobile app. I added to my project: Facebook SDK Firebase authentication SDK Implement both Facebook login and Firebase authentication mechanism for facebook. Couldn't i just implement facebook SDK and implement the login? I understand the benefit of receiving statistics about users and logins from different social networks in one place. Are there more benefits i am missing? 回答1: You're most

How do I get the @user from firebase user from Twitter

扶醉桌前 提交于 2020-01-30 10:54:05
问题 I am trying to access the Twitter username after logging in via firebase to Twitter, but the .getDisplayName method returns the user's name, not the @ Any ideas? I have tried this FirebaseAuth.getInstance().getCurrentUser().getDisplayName() But it doesnt give me the @ 回答1: This information is available in AdditionalUserInfo.getUsername(), which you can get from the AuthResult when the user signs in. It is not available from FirebaseAuth.getInstance().getCurrentUser() . 来源: https:/

How do I get the @user from firebase user from Twitter

萝らか妹 提交于 2020-01-30 10:52:32
问题 I am trying to access the Twitter username after logging in via firebase to Twitter, but the .getDisplayName method returns the user's name, not the @ Any ideas? I have tried this FirebaseAuth.getInstance().getCurrentUser().getDisplayName() But it doesnt give me the @ 回答1: This information is available in AdditionalUserInfo.getUsername(), which you can get from the AuthResult when the user signs in. It is not available from FirebaseAuth.getInstance().getCurrentUser() . 来源: https:/

How do I get the @user from firebase user from Twitter

梦想的初衷 提交于 2020-01-30 10:50:01
问题 I am trying to access the Twitter username after logging in via firebase to Twitter, but the .getDisplayName method returns the user's name, not the @ Any ideas? I have tried this FirebaseAuth.getInstance().getCurrentUser().getDisplayName() But it doesnt give me the @ 回答1: This information is available in AdditionalUserInfo.getUsername(), which you can get from the AuthResult when the user signs in. It is not available from FirebaseAuth.getInstance().getCurrentUser() . 来源: https:/

firebase.auth.RecaptchaVerifier is not a constructor error

元气小坏坏 提交于 2020-01-30 08:20:06
问题 Trying to add the Firebase script in my html, after initializing Firebase app with firebase.initializeApp(config); . So then I have this : <script> window.recaptchaVerifier = new firebase.auth.RecaptchaVerifier('sign-in-button', { 'size': 'invisible', 'callback': function(response) { // reCAPTCHA solved, allow signInWithPhoneNumber. onSignInSubmit(); } }); </script> Which provides the error : firebase.auth.RecaptchaVerifier is not a constructor error How to solve this error (found similar

Is it possible to check phone number is already registered in firebase else goto sign up

早过忘川 提交于 2020-01-30 02:48:06
问题 Is there anyway to check entered mobile number in login activity is already registered with firebase before generating OTP? If not registered, I want to goto signup activity. 回答1: Here is one solution: You can write a Cloud function and add each phone number to Cloud Firestore while using Phone Authentication and then you can easily call the function from your app and check whether it is registered or not. Visit https://firebase.google.com/docs/functions/callable 回答2: There is no API in the

Is it possible to check phone number is already registered in firebase else goto sign up

三世轮回 提交于 2020-01-30 02:48:03
问题 Is there anyway to check entered mobile number in login activity is already registered with firebase before generating OTP? If not registered, I want to goto signup activity. 回答1: Here is one solution: You can write a Cloud function and add each phone number to Cloud Firestore while using Phone Authentication and then you can easily call the function from your app and check whether it is registered or not. Visit https://firebase.google.com/docs/functions/callable 回答2: There is no API in the

Android: Retrieve data of a specific user from a Firebase database

試著忘記壹切 提交于 2020-01-28 08:08:58
问题 I am trying to read "specific" data from my firebase realtime database. I have seen examples of getting all data from a table and going through it to find the data record you want, but that is definitly not a recommended safe practice. Below is how I save my data private void saveInDatabase(String email) { // Write a message to the database FirebaseDatabase database = FirebaseDatabase.getInstance(); DatabaseReference myRef = database.getReference("user"); String key = myRef.push().getKey();

Android: Retrieve data of a specific user from a Firebase database

社会主义新天地 提交于 2020-01-28 08:05:31
问题 I am trying to read "specific" data from my firebase realtime database. I have seen examples of getting all data from a table and going through it to find the data record you want, but that is definitly not a recommended safe practice. Below is how I save my data private void saveInDatabase(String email) { // Write a message to the database FirebaseDatabase database = FirebaseDatabase.getInstance(); DatabaseReference myRef = database.getReference("user"); String key = myRef.push().getKey();