firebase-authentication

Uncaught TypeError: Cannot read property 'uid' of null using website

╄→尐↘猪︶ㄣ 提交于 2019-12-04 10:25:44
I want to get registered user details from firestore into html page. When user clicks my profile page it navigate to next html page with fields like first name and last name etc.. . This fields are already entered at the time of signup page. so i want get those details from firestore into next html page. But i got the error like "Cannot read property 'uid' of null ". How to resolve that problem this is my html page : <!doctype html> <html lang="en"> <head> <title> deyaPay</title> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">

Firebase Auth using phone number and password

☆樱花仙子☆ 提交于 2019-12-04 10:16:34
I am developing Android app using Firebase. Because of that, I want to use Firebase Auth. I have following requirements: Register/Log in using Facebook Register/Log in using Email/Password Register/Log in using Phone Number/Password The first two are OK, I followed basic tutorials . However, Phone Number / Password is the problem here. Firebase supports only Phone Number/SMS Token for this (its called Phone Auth), but there is no mention about my case. I do not want to hack Firebase and use its realtime database instead of Auth 'database'. Is there any better way to achieve this? Thank you.

How to use firebase with read and write rules as false

╄→尐↘猪︶ㄣ 提交于 2019-12-04 09:51:27
I am working on a project and I followed few tutorials in order to learn and build the app. But all of them, they change the Firebase read and write rules to true which is not safe. for example they change { "rules": { ".read": false, ".write": false } } to { "rules": { ".read": true, ".write": true } } This gives access to anyone to read and write the server data which is not safe in any way. And hence I turned this to false and now I am unable to register the user to Firebase it is giving an error saying 'Permission Denied. So what would I have to do in order to get the permission now.

Rare NullPointerException in GoogleApiClient using Firebase

情到浓时终转凉″ 提交于 2019-12-04 09:13:58
问题 I am using GoogleApiClient to login users using their Google account. Basically, I am using Firebase Auth with Google sign in. But I am getting this crash on some devices every single day . When I test on some of my own devices (OnePlus 3, Nexus 5X, Moto G, etc) I never see this crash. Fatal Exception: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String java.lang.String.toLowerCase(java.util.Locale)' on a null object reference at com.google.android.gms.internal

Can PHP retrieve data from Firebase / Firestore?

ⅰ亾dé卋堺 提交于 2019-12-04 09:06:42
Is there a PHP library for connecting php to the Firebase Firestore database? Is it even possible to PHP to retrieve data from Firebase? Yes, there is now a PHP client library . use Google\Cloud\Firestore\FirestoreClient; $db = new FirestoreClient(); $citiesRef = $db->collection('cities'); $query = $citiesRef->where('state', '=', 'CA'); $snapshot = $query->documents(); foreach ($snapshot as $document) { printf('Document %s returned by query state=CA' . PHP_EOL, $document->id()); } You'll find more examples in our documentation now, just select the PHP tab on the snippets. Yes, you can retrieve

accessing email address in firebase rules [duplicate]

怎甘沉沦 提交于 2019-12-04 08:47:01
This question already has an answer here: How can we guarantee that the email saved by the Firebase user is indeed his own email? 1 answer I'm using firebase 3. When writing firebase rules, the auth object only contains the uid and the provider. Is there any way that this could be enhanced to also provide the email address? The problem that I'm trying to solve is that the owner of the site I'm working on wants to permission users based on their email address, because he won't know their firebase uid up front. I have seen solutions to this suggesting to persist the user object in firebase (with

Firebase user returns null metadata for already signed up users

懵懂的女人 提交于 2019-12-04 08:43:48
I have been using Firebase for authentication of users in the app. FirebaseAuth.getInstance().getCurrentUser().getMetadata() returns null when user comes back to the app after the sign up. It works perfectly when user signs up for the first time, but returns null for returning users. Malcolm from the Firebase Team here. Thanks for pointing this out. This is presently a bug in the persistence done by the Android SDK. We'll get on fixing this ASAP - keep an eye on upcoming release notes to know when it's resolved. In the meantime, the workaround you can use is to write to your app's

Firebase Auth saved after uninstall. How can I delete it?

自作多情 提交于 2019-12-04 08:41:20
I've recently discovered that Firebase Auth saves itself on the device even after my app is uninstalled. I can't figure out how to REMOVE this old Auth info. I don't want a user to still be signed in after uninstalling and reinstalling the app. If for no other reason than my own testing of what I expect to be "clean installs" on the same device. I understand there is no easy way to capture an uninstall event, so I want to clear out any potential old Auth info on the first launch. So I added code (which seems to work fine) to check if this is the first launch: Boolean firstRun = prefs

No provider for InjectionToken angularfire2.app.options

只愿长相守 提交于 2019-12-04 07:40:42
Recently I started to learn to use the concept of firebase in combination with angular. As a start, I try to make the login process work. Currently, I get an ennoying error when I try to navigate to the login page and I cannot figure out what is causing the error. The error I get is: ERROR Error: Uncaught (in promise): Error: StaticInjectorError(AppModule)[AngularFireAuth -> InjectionToken angularfire2.app.options]: StaticInjectorError(Platform: core)[AngularFireAuth -> InjectionToken angularfire2.app.options]: NullInjectorError: No provider for InjectionToken angularfire2.app.options! What do

Firebase Facebook Authentication gives error Refused to display <oauth redirect url> in a frame because it set 'X-Frame-Options' to 'sameorigin'

帅比萌擦擦* 提交于 2019-12-04 06:54:13
问题 My login with firebase was working fine yet, since today and apparently without any change, I'm getting this error: Refused to display <oauth redirect url> in a frame because it set 'X-Frame-Options' to 'sameorigin' And the login does not get through. I'm using firebase 5.5.3 but with 6.3.0 (latest) is exactly the same. var provider = new firebase.auth.FacebookAuthProvider(); provider.addScope('public_profile,email'); firebase.auth().signInWithPopup(provider).then(function (result) { console