Skip to content

Instantly share code, notes, and snippets.

View krokhale's full-sized avatar
💭
I may be slow to respond.

Krishna Rokhale krokhale

💭
I may be slow to respond.
View GitHub Profile
/***************************************************
* Assuming you can't use priorities (e.g. they are already being used for something else)
* You can store the email addresses in an index and use that to match them to user ids
***************************************************/
var fb = new Firebase(URL);
/**
* Looks up a user id by email address and invokes callback with the id or null if not found
*/