firebase-authentication

How to do autologin with three diffrent userTypes in flutter and firebase?

人走茶凉 提交于 2020-07-08 02:27:57
问题 The bounty expires in 3 days . Answers to this question are eligible for a +50 reputation bounty. dev-aentgs is looking for an answer from a reputable source . I have this app that do login with firebase auth and firestore to get the userType, This code is written obviously in the login page, What I want to add is autologin ASA the app runs which firebase offers with the correct userType So the first proplem how to transfer the email value to the main.dart page as I search in the firestore

How to do autologin with three diffrent userTypes in flutter and firebase?

女生的网名这么多〃 提交于 2020-07-08 02:27:44
问题 The bounty expires in 3 days . Answers to this question are eligible for a +50 reputation bounty. dev-aentgs is looking for an answer from a reputable source . I have this app that do login with firebase auth and firestore to get the userType, This code is written obviously in the login page, What I want to add is autologin ASA the app runs which firebase offers with the correct userType So the first proplem how to transfer the email value to the main.dart page as I search in the firestore

Flutter/Firebase Google login not working after building apk file

旧城冷巷雨未停 提交于 2020-07-07 12:01:13
问题 I have made android app that uses firebase and google_sign. Then I have release apk by flutter build apk. But after installing that apk file locally in my phone the google login page does't works although I works perfectly. I am aware that when publishing the app to playstore we need to add provided SHA1 key but if I am not planing to release to google play then is there any way to make with work? 回答1: This is a late answer, but the debug and even the prod signing key that you use on your

react firebase authentication with apollo graphql

橙三吉。 提交于 2020-07-05 05:11:20
问题 I have found a great article adding authentication into react. Article: https://www.robinwieruch.de/complete-firebase-authentication-react-tutorial/ This article finishes the firebase setup (before redux) with a HOC component that I can put into the app and can access with context. My issue is how do i put this into the apollo client which is outside of the app component so even with the context I cant set it. I have this same problem with redux. Only one I have found is use local storage but

Secure Firestore database using rules. Check authentication. Is it enough?

久未见 提交于 2020-07-05 04:59:46
问题 I'm new to Firebase and trying to understand database rules. I'm using Firestore. I have a database that basically needs to be read by all users, and also write. All users can see the documents in the database, and with certain actions they change certain fields. In certain cases they will detele certain old expired documents. Now, I understand that I cannot leave read and write open to all, since this is not secure. So I am using authentication, I will anonymously authenticate the users, so

Firebase Auth ID token has incorrect “aud” claim

吃可爱长大的小学妹 提交于 2020-07-04 07:46:45
问题 I'm trying to verify an idToken backend. The user has successfully logged in to firebase client side but when I try to verify the idToken on my backend I get this not very helpful error message Firebase Auth ID token has incorrect "aud" claim The error message seems to have become a little more informative, and boils down to not having the project name in the auth key: Error: Firebase ID token has incorrect "aud" (audience) claim. Expected "stripmall-0000" but got "617699194096

How can I create a new user via Firebase Auth without signing in?

送分小仙女□ 提交于 2020-07-03 07:44:52
问题 I'm working on an enterprise application in which administrators create new users (there is no sign-up form). I am using Firebase Auth, which is great in many ways, but I've come across a problem for my use case. When you use firebase.auth().createUserWithEmailAndPassword(email, password) , the user thereby created is automatically signed in. This obviously won't work when an admin is creating the user accounts. Is there any way to avoid this behavior? Thanks. 回答1: This is a good use case for

How can I create a new user via Firebase Auth without signing in?

丶灬走出姿态 提交于 2020-07-03 07:43:45
问题 I'm working on an enterprise application in which administrators create new users (there is no sign-up form). I am using Firebase Auth, which is great in many ways, but I've come across a problem for my use case. When you use firebase.auth().createUserWithEmailAndPassword(email, password) , the user thereby created is automatically signed in. This obviously won't work when an admin is creating the user accounts. Is there any way to avoid this behavior? Thanks. 回答1: This is a good use case for

How can I create a new user via Firebase Auth without signing in?

时光毁灭记忆、已成空白 提交于 2020-07-03 07:43:28
问题 I'm working on an enterprise application in which administrators create new users (there is no sign-up form). I am using Firebase Auth, which is great in many ways, but I've come across a problem for my use case. When you use firebase.auth().createUserWithEmailAndPassword(email, password) , the user thereby created is automatically signed in. This obviously won't work when an admin is creating the user accounts. Is there any way to avoid this behavior? Thanks. 回答1: This is a good use case for

Firebase 3 - ref.getAuth() equivalent

北城以北 提交于 2020-07-02 18:32:08
问题 In Firebase 2 I was able to do a synchronous check to see if the user was logged in, e.g: if (!ref.getAuth()) ..go to login page else ..show page I can access the currentUser state with firebase.auth().currentUser so I tried to do: if (!firebase.auth().currentUser) ..go to login page else ..show page The problem is that this is always initially null, so it redirects to the login page, then a few moments later onAuthStateChanged happens and the user is logged in. Is there still a way to