firebase-authentication

Pattern for firebase onAuthStateChanged & Navigation Guards - Quasar app

老子叫甜甜 提交于 2019-12-11 02:35:31
问题 I am facing an issue in my Quasar app with regards to browser refresh and firebase authentication. After a user logs in and then clicks on the browser refresh, then the firebase.auth().currentUser returns null (as this executes asynchronously). This means that when the beforeEach gets executed the currentUser is null and the user is prompted with the logon page. However I see that when the callback to onAuthStateChanged is getting invoked the user is getting set correctly. Is there any

Check if an email already exists in Firebase Auth in Flutter App

一个人想着一个人 提交于 2019-12-11 02:35:25
问题 I'm currently developing a flutter app that requires users to register before using it. I use Firebase Authentication and would like to check whether an email is already registered in the app. I know the easy way to do it is to catch the exception when using the createUserWithEmailAndPassword() method (as answered in this question). The problem is that I ask for the email address in a different route from where the user is registered, so waiting until this method is called is not a good

Firebase admin sdk not syncing with the gradle

主宰稳场 提交于 2019-12-11 02:27:52
问题 I have incorporated some libraries into my android app. I have connected it with Firebase cloud server. Now, I want to create tokens for User authentication. Firebase asks to add Firebase Admin Sdk to the gradle File. However, it shows error on building the gradle. The sdk I am adding is compile 'com.google.firebase:firebase-admin:5.3.1' Following is the error: Error:Conflict with dependency 'com.google.code.findbugs:jsr305' in project ':app'. Resolved versions for app (3.0.0) and test app (2

How create new user with Firebase API w/o signing out? [duplicate]

和自甴很熟 提交于 2019-12-11 02:24:49
问题 This question already has answers here : Firebase kicks out current user (13 answers) Closed 2 years ago . user signs in. I make a call to create new user with firebase.auth().createUserWithEmailAndPassword(email, password) it successfully creates new firebase user. Before this call firebase.auth().currentUser.uid gives different uid then after the call. So active user changes. Is there any way for active user create another user and still be active user? I know one way to work this around :

Why do I see a “400 (Bad Request)” in my developer console when sign-in to Firebase Authentication fails?

六月ゝ 毕业季﹏ 提交于 2019-12-11 02:16:38
问题 I'm using the method signInWithEmailAndPassword to validate a user in my angular based application, I wrote this code: firebase.auth().signInWithEmailAndPassword(email, password).then( function(authData) { //user was validated console.log(authData); }, function(error) { if(error){ // Handle Errors var errorCode = error.code; var errorMessage = error.message; // [START_EXCLUDE] if (errorCode === 'auth/wrong-password') { alert('Wrong password.'); } else { alert(errorMessage); } } }); When I run

auth.provider is not set to 'password' when user signs-in with email and password

梦想的初衷 提交于 2019-12-11 01:56:12
问题 I am developing an iOS app using Firebase (the newest) and I am having trouble with the auth.provider expression in the security rules when the user is authenticated using an email and password. I expect the auth.provider expression to return password but instead it looks like it returns anonymous . In the Firebase console, I have enabled Email/Password and Google as providers, and have set up the following security rules: { "rules": { "users": { "$uid": { // the user is allowed to read "

AngularFire / Firebase - checking the authentication state

ε祈祈猫儿з 提交于 2019-12-11 01:47:18
问题 Note : I'm new to all of this, please excuse what might be obvious. Any help is massively appreciated :) What I have An auth service to log in and out An album service to fetch items based on user id albumList > UserId > albumKey In my album list service I query the path 'albumList > userId' Once I log in, this works perfectly, and only the results based on the matched query of the above are returned Issues If I were to copy and paste the URL of 'localhost:4200/albums' into another tab, the

Setting limits on file uploads via Firebase auth and storage without server in the middle?

混江龙づ霸主 提交于 2019-12-11 01:19:51
问题 I'm learning about Firebase auth and storage in a web app. My idea asks users to login via Firebase and then upload an image. I can see that this is possible from Firebase auth and storage. However, I would like to put limits on the file count and file-size they can upload. Is it possible to control uploads within the Firebase console (or somewhere else)? After reviewing the JavaScript examples, I see how I can put files in, and I can imagine writing code which would query Firebase for a user

Firebase/Facebook Authentication - OAuthException - Code 190

别说谁变了你拦得住时间么 提交于 2019-12-11 01:16:57
问题 I've been implementing Firebase authentication in my Android app and have got it working easily & successfully (signed in debug) for different authentication providers such as Google, however Facebook will not play ball. I'm consistently receiving a com.google.firebase.FirebaseException when trying to authenticate with Facebook. I'm using the example from the firebase/quickstart auth app on github. As you can see from the output below, the Facebook authentication is successful and a valid

Authentication with old and new Firebase

若如初见. 提交于 2019-12-11 01:04:10
问题 I've have problem that I can't connect to more then one internet provider with my application. First I believed it was the new version of Firebase but it seems to be something else. If I install a new emulator inside Android Studio and connected to whatever internet connection, It will only allow me to use that connection to get inside my application. When I create a new project and test it, the problem is still there. Following inside loginActivity doesn't get called. firebaseRef