firebase-authentication

Firebase - What this means to set custom parameters to provider?

天涯浪子 提交于 2021-01-29 02:14:39
问题 Currently i am working with firebase authentication. And found many of tutorials, they set custom parameters to provider like that const provider = new firebase.auth.GoogleAuthProvider(); provider.setCustomParameters({ prompt: 'select_account' }); What this actually means setting custom parameters prompt ? Why we need to set custom parameters like that - in this case prompt: 'select_account' ? 回答1: Read the API documentation for GoogleAuthProvider.setCustomParameters: Sets the OAuth custom

Authenticate users between firebase apps

℡╲_俬逩灬. 提交于 2021-01-29 00:55:20
问题 I have a React app with firebase auth and storage Following on my previous question with multiple firebase apps here, I ended having multiple firebase apps inside my project. I have the DEFAULT app initialized firebase.initializeApp({ apiKey: 'xxxxxxxxxxxxxxxxxxxx', authDomain: 'buckettest-xxxxx.firebaseapp.com', projectId: 'buckettest-xxxxx', storageBucket: 'buckettest-xxxxx.appspot.com', messagingSenderId: 'xxxxxxxxxxxxxxxxxxxx', appId: 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx', measurementId: 'G

Listener's onDataChange() is not called by Firebase. Could not use new Google-Firebase on Java client, not Android

只谈情不闲聊 提交于 2021-01-28 21:43:41
问题 I've being trying for a week right now to migrate from Firebase to google-firebase on a Java Client. One important detail is that the client will run in a controlled environment so I can allow some key to be stored locally. After my studies I could find three ways based on this tutorial. As a "server" using the service account key the onDataChange() callback is not being called. This is the solution I put more effort and the one I still believe. I'll put my code forward on this question. I'm

Querying with two array with firestore security rules

梦想的初衷 提交于 2021-01-28 20:02:46
问题 I currently have two arrays in a single document, one representing product ids and the other representing user ids. In my query, I need to query both of the arrays for firestore security rules to work correctly, but to do that, I tried using array-contains and in in the same query, which is acceptable in the documentation, but when I go to query, I get "missing or insufficient permissions". db.collection('Depots') .where("products", "array-contains", productId) .where("users", "in",

Error while doing phone authentication on firebase

不羁的心 提交于 2021-01-28 19:26:58
问题 While doing phone number authentication on firebase i'm getting crash with this error message. please help. com.russvkm.chathut is my package name E/AndroidRuntime: FATAL EXCEPTION: main Process: com.russvkm.chathut, PID: 24323 java.lang.NoClassDefFoundError: Failed resolution of: Landroidx/browser/customtabs/CustomTabsIntent$Builder; at com.google.firebase.auth.internal.RecaptchaActivity.zza(com.google.firebase:firebase-auth@@20.0.0:92) at com.google.firebase.auth.api.internal.zzeq.zza(com

Save data into the Firebase user object

China☆狼群 提交于 2021-01-28 19:06:23
问题 Using this : firebase.auth().onAuthStateChanged(function(user){ if (user){ Firebase is returning the user, which includes a userID . When a webpage get this object it takes the user ID, and need to access again the DB records to check some very basic stuff ( if it's a paid user, or another simple key) in order to choose the UI. Is there away to return in this callback the user including some predefined basic info about him? 回答1: If you want to add some extra info to a user account you cannot

Error while doing phone authentication on firebase

丶灬走出姿态 提交于 2021-01-28 18:52:40
问题 While doing phone number authentication on firebase i'm getting crash with this error message. please help. com.russvkm.chathut is my package name E/AndroidRuntime: FATAL EXCEPTION: main Process: com.russvkm.chathut, PID: 24323 java.lang.NoClassDefFoundError: Failed resolution of: Landroidx/browser/customtabs/CustomTabsIntent$Builder; at com.google.firebase.auth.internal.RecaptchaActivity.zza(com.google.firebase:firebase-auth@@20.0.0:92) at com.google.firebase.auth.api.internal.zzeq.zza(com

Firebase get Authentication details using UID

扶醉桌前 提交于 2021-01-28 10:41:09
问题 I am building a admin panel for a android app in javascript and php in which i created a users table with Firebase Authentication UID so every user key is UID but in this user table i am not inserting Auth Identifier . now in my admin panel how can i retrieve Auth Identifier (Phone Number) using UID(user Key) 回答1: You can only get the firebase authenticated User info from the current session/user, and if you need to query for it later then you need to save it in your own datastore. For more

How to link user account among google actions, mobile app, backend server and firebase auth?

醉酒当歌 提交于 2021-01-28 10:22:42
问题 Not sure if this is the right place for this question. This is not necessary 100% coding problem but it is not not a coding problem either. Anyway, here is The Story: I want to create a shopping system. The user can use the website or the mobile application or the google assistant to get product information and make purchases from this shopping system. The problem I am facing is how can I associate the user among these 3 clients. More specifically for the google assistant/actions. Things I

How to link user account among google actions, mobile app, backend server and firebase auth?

我只是一个虾纸丫 提交于 2021-01-28 10:17:12
问题 Not sure if this is the right place for this question. This is not necessary 100% coding problem but it is not not a coding problem either. Anyway, here is The Story: I want to create a shopping system. The user can use the website or the mobile application or the google assistant to get product information and make purchases from this shopping system. The problem I am facing is how can I associate the user among these 3 clients. More specifically for the google assistant/actions. Things I