UserRecord { uid: '00MD9Pw5OPdVjwvqFplPrULHEr62', ... passwordHash: 'UkVEQUNURUQ=', passwordSalt: undefined, customClaims: undefined, tokensValidAfterTime: 'Mon, 18 Sep 2017 23:52:09 GMT'
}{ uid: '00MD9Pw5OPdVjwvqFplPrULHEr62', ... passwordHash: 'sBO_zKBmxJ9YTT2rR5UAtezNGW2ziGmj_pegJJZPuurT_iNsXFxQrnVIAaqTqISXMfSRybzATjKNGT_k5CmmWA==', passwordSalt: 'YnEEloAZILEM3A==', customClaims: undefined, tokensValidAfterTime: 'Mon, 18 Sep 2017 23:52:09 GMT'
} We have used Firebase realtime DB with good success, we want to start migrating/using Firestore, however we are all ready using Cloud Datastore and App Engine in the same project so I could not enable Firestore in the project. We would use both realtime and Firestore in tandem.Questions:
- If we remove our use of Cloud Datastore and App Engine in the project would we be able to enable Firestore?
- I started investing using a separate project and having our apps connect to 2 Firebase projects. We are using Firebase's email/password authentication. The problem is how to manage authentication. Is there a recommended way to handle this?
- I looked into exporting an existing user from the existing project into new project on demand. My plan is in node.js code to use the admin.auth().getUser() function to get a user's info then add the user into the new project using admin.auth().importUsers. One observation is the user object returned does not have the same data returned for passwordHash and passwordSalt for the same user in the auth().listUsers() function. Should the user's password hash and salt values be the same regardless of which function returned the data?
UserRecord {uid: '00MD9Pw5OPdVjwvqFplPrULHEr62',...passwordHash: 'UkVEQUNURUQ=',passwordSalt: undefined,customClaims: undefined,tokensValidAfterTime: 'Mon, 18 Sep 2017 23:52:09 GMT'
}
If I call auth().listUsers, the UserRecords returned{uid: '00MD9Pw5OPdVjwvqFplPrULHEr62',...passwordHash: 'sBO_zKBmxJ9YTT2rR5UAtezNGW2ziGmj_pegJJZPuurT_iNsXFxQrnVIAaqTqISXMfSRybzATjKNGT_k5CmmWA==',passwordSalt: 'YnEEloAZILEM3A==',customClaims: undefined,tokensValidAfterTime: 'Mon, 18 Sep 2017 23:52:09 GMT'
}
--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-tal...@googlegroups.com.
To post to this group, send email to fireba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/415b3ecb-627d-4f5b-9b5b-18db1bfa7199%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
function getUserByEmail(userEmail) { return FirebaseAdmin.auth() .getUserByEmail(userEmail) .then(function(userRecord) { // See the UserRecord reference doc for the contents of userRecord. console.log("Successfully fetched user data:\n", userRecord.toJSON()); return userRecord; }) .catch(function(error) { console.log("Error fetching user data:", error); return null; });}--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-tal...@googlegroups.com.
To post to this group, send email to fireba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/584316fd-89c9-4bd1-b6fa-3713f159e164%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.