firebase-authentication

Firebase Auth: Twitter login often fails

╄→гoц情女王★ 提交于 2020-01-05 03:57:06
问题 I am working on a React.js + firebase app, using Twitter login (see Login.js below). This code works most of the time (>90%), but it often fails with the following error. Screen: Malformed response cannot be parsed from twitter.com for OAUTH1_REQUEST_TOKEN Console: [Error] Failed to load resource: the server responded with a status of 400 () (verifyAssertion, line 0) Everything works fine with Email login. This problem happens only if I use Twitter login. I am wondering if I am doing

Firebase - what is the most efficient way to check if an email is registered?

梦想与她 提交于 2020-01-05 03:44:05
问题 I'm trying to write a function that will check to see if an email is registered with my Firebase app (with Javascript/Web), before proceeding with the sign up process (if the email isn't registered). I created a node named active_emails which I wanted to populate with registered emails (like an array). I was going to check the email against this list and if it didn't exist then I would allow the user to proceed with the registration process. I see from the answer here: Proper way to store

Firebase authentication in Chrome extension expires quickly

£可爱£侵袭症+ 提交于 2020-01-04 10:17:18
问题 I have built a website with Firebase serving back-end duties. I'm also building an associated Chrome extension that will refresh data every once in a while and display a notifications badge when there's new content. Authentication in the extension is working just fine using OAuth, but the session expires after a brief amount of time and requires a new login, which renders the extension useless. I've tried manually setting the persistence type to what should already have been the default,

How to use UID to acces database in Flutter?

让人想犯罪 __ 提交于 2020-01-04 09:08:07
问题 i am using the following function to retrive the UID: FirebaseAuth auth = FirebaseAuth.instance; getUID() async { final FirebaseUser user = await auth.currentUser(); final uid = user.uid; return uid; } After that, i would like to use the UID to acces the right database-doc: return new StreamBuilder( stream: Firestore.instance.collection('users').document(getUID()).snapshots(), builder: (context, snapshot) { if (!snapshot.hasData) { return new Text("Loading"); } var userDocument = snapshot

Facebook provider unconfigured. Make sure to add a `facebook_application_id` string

这一生的挚爱 提交于 2020-01-04 07:42:50
问题 I'm using Firebase UI Sign In and trying to implement Facebook sign in into my android app. When launching the firebase ui activity I get: "java.lang.IllegalStateException: Facebook provider unconfigured. Make sure to add a facebook_application_id string" In my string resources I have added it, this is how it looks: By the way in the firebase docs the string names are different from the ones in the facebook docs, this is how they look in the facebook docs or also called quickstart: `<string

Grabbing the current user in AngularFireAuth

情到浓时终转凉″ 提交于 2020-01-04 07:36:46
问题 How do I grab the logged in user? I am doing this: console.log('Logging in...'); this.afAuth.auth.signInWithEmailAndPassword(this.email, this.password); But the docs are not clear on how to get the user in code. They show a way in the template but I need to store the current user. 回答1: To get current user: let user = AngularFireAuth.auth.currentUser; // returns user object For some reason each page refresh causes currentUser to disappear and I store user id (UID) in local storage, so I am

How to send Facebook authentication details to Firebase using a Cordova plugin & Firebase template

为君一笑 提交于 2020-01-04 07:28:11
问题 Sorry this question is kind of long, it's because I've been trying to solve this problem for a while and want to make sure I don't leave any info out. I'm building a Cordova app and using Firebase for the authentication/database back end. I've been trying to authenticate users into Firebase using a Log in with Facebook button for almost a week now, but I haven't been able to get it to work. Originally I tried following Firebase's example here: https://firebase.google.com/docs/auth/web

How to send Facebook authentication details to Firebase using a Cordova plugin & Firebase template

烈酒焚心 提交于 2020-01-04 07:28:10
问题 Sorry this question is kind of long, it's because I've been trying to solve this problem for a while and want to make sure I don't leave any info out. I'm building a Cordova app and using Firebase for the authentication/database back end. I've been trying to authenticate users into Firebase using a Log in with Facebook button for almost a week now, but I haven't been able to get it to work. Originally I tried following Firebase's example here: https://firebase.google.com/docs/auth/web

Unable to get Google OAuth authentication working with React Native and Firebase

假如想象 提交于 2020-01-04 06:17:49
问题 I'm attempting to get Google OAuth working with Firebase and React Native and can't seem to get everything working together. I'm using the NPM package react-native-google-signin to handle the Google OAuth side of things and that is working as expected. I'm running into an issue getting the user authenticated with Firebase however. I've enabled Google Authentication on my Firebase instance according to the instructions in the Web Guide. However, when I try authenticating with the idToken field

How to fix “A value of type '(FirebaseUser) → Null' can't be assigned to a variable of type '(AuthCredential) → void'.”?

荒凉一梦 提交于 2020-01-04 05:34:07
问题 I'm trying to set up phone authentication on my app but I got stuck with this error "A value of type '(FirebaseUser) → Null' can't be assigned to a variable of type '(AuthCredential) → void'.". Any Idea on how to fix it? Thanks in advance for your help! class _AuthScreenState extends State<AuthScreen> { String phoneNo; String smsCode; String verificationId; Future<void> verifyPhone() async { final PhoneCodeAutoRetrievalTimeout autoRetrieve =(String verId) { this.verificationId = verId; };