firebase-authentication

Firebase, login by same email different provider

六月ゝ 毕业季﹏ 提交于 2020-07-01 03:56:05
问题 I want my users can login using many different provider but they will get same result if they use only one email address. For example, in stackoverflow I can login by Facebook, Google ... but I still can keep my profile as well as my posts ... In Firebase Web, for example if my user created an account with email/password provider, his email="ex@gmail.com" password="123456". This account has uid="account1" and I use this uid as a key to store additional information about him in Firebase

Firebase, login by same email different provider

戏子无情 提交于 2020-07-01 03:55:36
问题 I want my users can login using many different provider but they will get same result if they use only one email address. For example, in stackoverflow I can login by Facebook, Google ... but I still can keep my profile as well as my posts ... In Firebase Web, for example if my user created an account with email/password provider, his email="ex@gmail.com" password="123456". This account has uid="account1" and I use this uid as a key to store additional information about him in Firebase

“Resolution Failed! You application will not run, see the log for details”

*爱你&永不变心* 提交于 2020-06-29 05:03:36
问题 I'm trying to run Force Resolve with Firebase, but it fails and doesn't work. JAVA_HOME of Windows is also set to the latest JDK, and the JDK in Unity uses the one prepared by Unity (JDK Installed with Unity is true). I don't know what other information is needed. What should I do? Gradle failed to fetch dependencies. Failed to run 'C:\UnityProjects\UnityProjectName\Temp\PlayServicesResolverGradle\gradlew.bat --no-daemon -b "C:\UnityProjects\UnityProjectName\Temp\PlayServicesResolverGradle

Unhandled Exception: NoSuchMethodError: The method 'findAncestorStateOfType' was called on null

本秂侑毒 提交于 2020-06-29 04:23:42
问题 Because of the following error, my app is stuck at HandleMainScreen. It Navigated properly for the first time but gives error in the console but when I hot restart it Navigation doesn't work and app stuck at HandleMainScreen. E/flutter ( 8785): [ERROR:flutter/lib/ui/ui_dart_state.cc(157)] Unhandled Exception: NoSuchMethodError: The method 'findAncestorStateOfType' was called on null. E/flutter ( 8785): Receiver: null E/flutter ( 8785): Tried calling: findAncestorStateOfType<NavigatorState>()

Firebase & React: CollectionReference.doc() argument type

余生颓废 提交于 2020-06-29 04:02:14
问题 I'm trying to figure out how to query a record in firestore using an authUser uid as the document id. I have seen this post and am trying to implement the logic by updating the state of the user so that the componentDidMount function can find a document in the users collection in firestore, where that document has an id which is the same as the authUser.uid in the Authentication collection. I have an authListener with: import React from 'react'; import { AuthUserContext } from '../Session

How to detect idToken expiry?

二次信任 提交于 2020-06-28 08:19:06
问题 I have a login page that authenticates users using signInWithEmailAndPassword() using Javascript client SDK. If a login is successful, user is redirected (along with the idToken) to the member page. On the server side (nodejs using firebase admin SDK), the member page checks the validity of idToken and if valid, it gets the user-specific data from Firebase and displays it on the webpage. On the member page, there is lots of data to see/edit/delete etc. So it's not inconceivable that a user

Trying to deploy firebase functions, Default service account not found

送分小仙女□ 提交于 2020-06-28 06:52:05
问题 I am trying to upload the following simple function to my firebase console const functions = require('firebase-functions'); exports.helloWorld = functions.https.onRequest((request, response) => { response.send("Hello from Firebase!"); }); However, it fails with the following error: HTTP Error: 400, Default service account 'myfirebase-projecte@appspot.gserviceaccount.com' doesn't exist. Please recreate this account (for example by disabling and enabling the Cloud Functions API), or specify a

java.lang.String com.google.firebase.auth.FirebaseUser.getUid()' on a null object reference [duplicate]

荒凉一梦 提交于 2020-06-28 06:21:32
问题 This question already has answers here : What is a NullPointerException, and how do I fix it? (12 answers) Closed 2 years ago . when I am trying to run app it automatically crashing showing an error Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String com.google.firebase.auth.FirebaseUser.getUid()' on a null object reference at com.example.akhilkumar.chitchat.MainActivity.onCreate(MainActivity.java:55) error pointing to currentUserID = mAuth

Firebase grecaptcha is undefined with react

|▌冷眼眸甩不掉的悲伤 提交于 2020-06-28 05:11:19
问题 I copied the code from this bit here in the documentation: window.recaptchaVerifier.render().then(function(widgetId) { grecaptcha.reset(widgetId); } However in my react project grecaptcha is undefined. I don't see where they declare it as a variable or where to get it from in firebase. 回答1: Not sure why but this worked for me just fine: window.recaptchaVerifier.render().then(widgetId => { window.recaptchaVerifier.reset(widgetId); }); Instead of doing grecaptcha , I just did the window

flutter: If app delegate swizzling is disabled, remote notifications received by UIApplicationDelegate need to be forwarded to FIRAuth's

被刻印的时光 ゝ 提交于 2020-06-28 04:45:20
问题 When i want to use sms auth with firebase the app fails only on iOS The APN certificate is alredy configured on firebase and FirebaseAppDelegateProxyEnabled is NO in Info.plist . The error is occuring during the verifyPhoneNumber method. Here is the flutter doctor Doctor summary (to see all details, run flutter doctor -v): [✓] Flutter (Channel unknown, v1.7.0, on Mac OS X 10.14.5 18F132, locale en-PE) [✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3) [✓] Xcode -