firebase-authentication

Is there a way to know that a user clicked on the verification link?

随声附和 提交于 2019-12-06 05:09:25
问题 Here's the code I'm using to send a verification email (taken from the official docs) var user = firebase.auth().currentUser; user.sendEmailVerification().then(function() { // Email sent. }).catch(function(error) { // An error happened. }); User object has emailVerified property. It doesn't change when user clicks the link in the mail. It only updates on re-login. Is there a way for an app to know that a user sucessfully verified their address? 回答1: firebaser here There is no client-side

Firebase Initializing Without Auth - firebase.auth is not a function

冷暖自知 提交于 2019-12-06 05:04:45
I cannot figure out why one of my Firebase apps initializes with auth() and one does not. I have followed the node installation options here: https://firebase.google.com/docs/web/setup **Edit: ** To clarify, the one that works is also using the admin sdk inside firebase functions. However, I don't understand how that might be connected to the front-end client sdk interface. I am continuously getting an error, whenever I try to call any firebase.auth() methods on the app that initializes without it. What are reasons that would prevent my app from initializing without auth()? I have poured over

Android: FirebaseUser, AuthCredential and others not found after Android Studio upgrade to 2.2 with com.google.firebase:firebase-auth:9.4.0

孤街醉人 提交于 2019-12-06 04:44:57
I just upgraded Android Studio to version 2.2, I'm on the stable channel. I then adjusted the build.grade file by bumping the version of compile 'com.google.firebase:firebase-auth:x.x.x' to 9.4.0 , which is currently the latest version. After syncing the project I am no longer able to use import com.google.firebase.auth.AuthCredential; import com.google.firebase.auth.AuthResult; and import com.google.firebase.auth.FirebaseUser; The online docs for Firebase don't mention anything related to this issue. What could be going on here? Currently New Version Released com.google.firebase:firebase-core

Can PHP retrieve data from Firebase / Firestore?

若如初见. 提交于 2019-12-06 04:34:01
问题 Is there a PHP library for connecting php to the Firebase Firestore database? Is it even possible to PHP to retrieve data from Firebase? 回答1: 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

Custom Firebase Data Service Class : Swift 3

ぃ、小莉子 提交于 2019-12-06 04:01:06
问题 I'm searching for a clean way to retrieve (and sometimes save) data from Firebase in Swift. It's annoying me that all my database calls are written in the middle of the view controller code. So I'm looking for some kind of custom data service class. I found this tutorial that's close to what I want: http://www.mobilecyberpunks.com/?p=82. They promised a Part II but I cannot find this second part, so I guess this was never made. In this second part they promised to cover retrieving and saving

accessing email address in firebase rules [duplicate]

好久不见. 提交于 2019-12-06 03:56:29
问题 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) Closed 3 years ago . 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

Can I create a user on Firebase Authentication in Cloud Functions Http Trigger?

风流意气都作罢 提交于 2019-12-06 02:49:15
问题 Is it possible to create users (email/password type) from inside the Cloud Functions? I am searching for reference to this, but found nothing. 回答1: The createUser() function let's you do just that. admin.auth().createUser({ email: "user@example.com", emailVerified: false, password: "secretPassword", displayName: "John Doe", photoURL: "http://www.example.com/12345678/photo.png", disabled: false }) .then(function(userRecord) { // See the UserRecord reference doc for the contents of userRecord.

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

若如初见. 提交于 2019-12-06 02:30:05
问题 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

firebase (fcm) says 401 unauthorized

大兔子大兔子 提交于 2019-12-06 01:48:10
问题 private void sendMsg() { DBManager dbManager = DBManager.getInstance(); ArrayList<String> firebaseIds; try { ResultSet rs= dbManager.getRegisteredFirebaseDevice(); while(rs.next()){ System.out.println(rs.getString(1)); firebaseIds.add(rs.getString(1)); } } catch (SQLException e) { e.printStackTrace(); } String url = "https://fcm.googleapis.com/fcm/send"; URL obj = new URL(url); HttpURLConnection con = (HttpURLConnection) obj.openConnection(); // add reuqest header con.setRequestMethod("POST")

Using Firebase Authentication with Unity on standalone game

被刻印的时光 ゝ 提交于 2019-12-06 01:34:38
I want to make a cross platform game using Firebase with Firebase Unity SDK(now Version 1.1.1). I would like to use Firebase realtime database. I know that SDK does not correspond to standalone game and on UnityEditor, but it works without problems on standalone game limited realtime database. However, Authentication can not be used in same situation so it is necessary to open permission rules: "rules": { ".read": true, ".write": true } But it is never realistic to use actually. Do you have good ideas to use Firebase Authentication with Unity3D on standalone game? Or does that SDK have been