firebase-authentication

Firebase Overwrites Signin with Google Account

烈酒焚心 提交于 2019-12-17 05:07:59
问题 There doesn't seem to be any mention of this in the documentation, and all I found was this and this, where I would like to confirm this: If there is an existing account with the same email address but created with other credentials (e.g. password or non-trusted provider), the previous credentials are removed for security reasons. If a user signs in through Facebook or email/password and later through Google, their account sign in method is converted to Google. It only happens with Google and

Google Firebase sign out and forget user in Android app

耗尽温柔 提交于 2019-12-17 03:16:35
问题 When I call mFirebaseAuth.signOut() or mFirebaseUser.delete() my FirebaseAuth.AuthStateListener() works correctly and returns null as FirebaseUser instance in onAuthStateChanged , I refresh UI and show "Sign in with Google" button. But when I want to log in again, I don't see the dialog with users (I have 2 users on my device, attached the image). The app shows this dialog only in first sign in, after that it uses the same user. If I clear app's data on the settings screen I will be able to

How to determine if a Firebase user is signed in using facebook authentication

走远了吗. 提交于 2019-12-17 02:49:15
问题 I am using firebase from google and I have some trouble with user authentication. After logging with facebook I obtain FirebaseUser in AuthStateListener, but how can I detect if this user is logged via facebook or differently? UPDATE As @Frank van Puffelen said FirebaseAuth.getInstance().getCurrentUser().getProviderId() should return "facebook", but in my case it returns "firebase". Now I cannot figure out what's the reason of this behavior. When I got FacebookToken I do something like this:

Convert Promise to Observable

自闭症网瘾萝莉.ら 提交于 2019-12-17 02:09:25
问题 I am trying to wrap my head around observables. I love the way observables solve development and readability issues. As I read, benefits are immense. Observables on HTTP and collections seem to be straight forward. How can I convert something like this to observable pattern. This is from my service component, to provide authentication. I'd prefer this to work like other HTTP services in Angular2 - with support for data, error and completion handlers. firebase.auth()

java.lang.IllegalArgumentException: Given String is empty or null when executing Firebase updatePassword() Method

别等时光非礼了梦想. 提交于 2019-12-14 03:55:36
问题 I am currently working on my project using Firebase Real-time DB, but I've encountered a problem when I am executing the method it gives me: E/AndroidRuntime: FATAL EXCEPTION: main Process: naufal.com.tugasakhir, PID: 7291 java.lang.IllegalArgumentException: Given String is empty or null at com.google.android.gms.common.internal.zzaa.zzdl(Unknown Source) at com.google.firebase.auth.FirebaseUser.updatePassword(Unknown Source) at naufal.com.tugasakhir.ChangePass$1.onClick(ChangePass.java:59) at

Retrieve user data from Firebase database

情到浓时终转凉″ 提交于 2019-12-14 03:44:44
问题 I have created an Android App By which user can register and login.When a user registration is successful a Name and value will created in my database for that User. Now I want to retrieve The Data For every User separately. 回答1: To retrieve the current user's data from this structure, you need two things: to know the uid of the current user to then read the data from the database In code: String uid = FirebaseAuth.getInstance().getCurrentUser().getUid(); FirebaseDatabase.getInstance

FirebaseAuth.getInstance() crashes with “IllegalArgumentException: Given String is empty or null”

♀尐吖头ヾ 提交于 2019-12-14 03:44:25
问题 I was trying to create a login system from my app, but it crashes when I open it. I managed to locate the bug to the line mFirebaseAuth = FirebaseAuth.getInstance(); which makes no sense to me. Here is the code: protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); //Initialize Firebase Auth mFirebaseAuth = FirebaseAuth.getInstance(); mFirebaseUser = mFirebaseAuth.getCurrentUser(); if (mFirebaseUser == null) { // Not

Dialogflow, Google Account Linking and ASP.NET Core API (Webhook)

断了今生、忘了曾经 提交于 2019-12-14 03:42:21
问题 I am a student working on a NLP app for the Google Home for my senior design project. I am wondering specifically: What is the correct way to implement Google Account Linking and what does Google Account linking provide for registering/authenticating users via Dialogflow (i.e. what the dataflow looks like from initial query to Google logging in, back to Dialogflow, then to my ASP.NET Core API handler). Does Account Linking return a bearer token in the header back to Dialogflow and thus, back

How do I put a localStorage var inside my ng-show ? (Angular JS/Firebase)

江枫思渺然 提交于 2019-12-14 03:21:21
问题 SITUATION: When I load a page and didn't log in yet, everything works fine and I only see Login and Register in my nav as should be the case. But when I log in and I load any page, the nav will stay for about 0.5 to 1 seconds in a strange state where "Register", "Log in", "Profile" and "Log out" all appear at the same time. Then the nav appears as it should: showing only "Profile" and "Log out" . EDIT: ng-cloack fixed this, but profile and log out don't appear when I log in. CODE: header.ejs

Android Firebase createUser() is not Working

拥有回忆 提交于 2019-12-14 02:28:59
问题 I'm trying to create a user in the Firebase console using email and password but it doesn't work showing an error. Actually we can add users in the console by going to the dashboard and clicking on add user but I want to automate this process. Here's the full code: import android.content.Intent; import android.os.Bundle; import android.preference.PreferenceManager; import android.support.annotation.NonNull; import android.support.v7.app.AppCompatActivity; import android.util.Log; import