firebase-authentication

Firebase, Android, Google Plus Login - Not Able To Retrieve User's Email Address

允我心安 提交于 2019-12-10 20:13:10
问题 I am playing around with Google Plus Authentication and Firebase. I am working through the basic auth example with Android at the moment. The basic authentication part is working fine with the code on github, and it works as it should. https://github.com/firebase/firebase-login-demo-android The problem now arises when I am trying to fetch the email address, for some reason it doesn't seem to exist in the authData object. From the Firebase documentation on Google authentication:

Flutter Phone authentication error original example

若如初见. 提交于 2019-12-10 19:56:25
问题 Dears, I am developing this example (the original) of phone authentication: https://github.com/flutter/plugins/tree/master/packages/firebase_auth/example Of course, I added the .json and correct dependencies (I think, because other complements of firebase works fine). But, I get this part of code: Future<String> _testSignInWithGoogle() async { final GoogleSignInAccount googleUser = await _googleSignIn.signIn(); final GoogleSignInAuthentication googleAuth = await googleUser.authentication;

Adding Custom Attributes to Firebase Auth

三世轮回 提交于 2019-12-10 19:18:44
问题 I have hunted through Firebase's docs and can't seem to find a way to add custom attributes to FIRAuth. I am migrating an app from Parse-Server and I know that I could set a user's username, email, and objectId. No I see that I have the option for email, displayName, and photoURL. I want to be able to add custom attributes like the user's name. For example, I can use: let user = FIRAuth.auth()?.currentUser if let user = user { let changeRequest = user.profileChangeRequest() changeRequest

Firebase Read Only With No Authentication from App

不问归期 提交于 2019-12-10 18:58:05
问题 I'm starting with Firebase, and basically, i just want to store data in Firebase, and user from my app will only do a read only. From what i read so far, it seems that firebase only works with authentication, and i've read about anonymous authentication. But i don't see the advantage of being authenticated anonymously, since basically the user will never be upgraded to "permanent" user. All i want is the user use my app (and only through my app) to get data without needing to authenticate.

Possible to check Firebase 3 auth state synchronously in Javascript?

别说谁变了你拦得住时间么 提交于 2019-12-10 18:53:10
问题 Currently my application is making use of the authorization state change callbacks to indicate moving between the authorization and the main page sections in my app. (Note: I am not using AngularFire) In Firebase 3 there is firebase.auth().currentUser however the currentUser is set to null if firebase hasn't finished pulling the data from the server. This value may be null at startup but be set 2 seconds later without the user doing anything with the application. In my app, the users

undefined is not an object firebase.auth.FacebookAuthProvider.credential

假如想象 提交于 2019-12-10 18:51:29
问题 Here is my code.. its pretty simple.. just trying to allow a user to authenticate through facebook and then add it to the Firebase system! I should mention that I am using React Native, I did read that various parts of the Firebase library does not work with React Native. const auth = firebase.auth(); const provider = firebase.auth.FacebookAuthProvider; LoginManager.logInWithReadPermissions(['public_profile']) .then(loginResult => { alert("login results") if (loginResult.isCancelled) { alert(

Firebase Auth not throwing User Collision error after secondary Google Sign In

Deadly 提交于 2019-12-10 18:49:36
问题 Question: How do you work around the bug outlined below? Overview: I have three (3) types of unique (non-anonymous) authentication available for my app. Email/Password Google Facebook App Behavior (steps to reproduce error): In the initial sign in, no error is thrown. App saves the initial sign in method programmatically. Clear data of App from within Android Settings. Secondary sign in, the following errors (or none) are thrown. Clear data again of App from within Android Settings. Tertiary

react native AsyncStorage firebase JSON value '<null>' of type NSNull cannot be converted to NSString

北城余情 提交于 2019-12-10 18:47:49
问题 I am using AsyncStorage to store some Firebase user data. AsyncStorage.setItem('firebaseUser', JSON.stringify(data)) React Native is blowing up with the below error when I try to retrieve the data AsyncStorage.getItem('firebaseUser') JSON value '' of type NSNull cannot be converted to NSString +[RCTConvert NSString:] + 226 RCTConvert.m:56 It appears that Firebase comes back with some null data ( displayName , photoUrl , etc.) Not sure if it's related. Versions: "react-native": "^0.31.0",

How to check if user is authenticated in Firebase and Express/Node.js?

六月ゝ 毕业季﹏ 提交于 2019-12-10 18:42:49
问题 If I have a page that can only be accessed by authenticated users, how do I check if a user is authenticated or not? I tried using (firebase.auth().currentUser !== null) but I am getting an error saying: TypeError: firebase.auth is not a function I have the following configuration: const express = require('express'), firebase = require('firebase'), app = express(); app.use(express.static("/public")); var config = { apiKey: "xxxx", authDomain: "xxxx", databaseURL: "xxxx", projectId: "xxxx",

Firebase Auth getIdToken gets stuck after update

巧了我就是萌 提交于 2019-12-10 18:17:00
问题 So the situation is as follows: 1) A user is logged in. the last token generated was a while ago and has expired. even if it hasn't, the issue doesn't hit. 2) An app update is installed. (Not android studio instant run thing, Actual signed apk with a higher app version and appversioncode) 3) User opens app and the regular code below which i use to refresh the id token runs. 4) None of the listeners get hit and there's never a time out Is this a bug or am i doing something wrong here? Clearing