The best way to import existing user accounts from another service into Firebase for use in Firebase Simple Login is to call createUser(email, password, callback) for each combination of email addresses and password, provided that you have them. There is currently no ready-made way to import custom email addresses and password hashes into Firebase Simple Login, although ping support@firebase.com may be the way to do this.
If you already have an existing authentication mechanism that you would like to use, instead of using Firebase Simple Login, generate a custom token that allows you to continue to use existing authentication. This would require you to create a JTON Web Token (JWT) when each user is authenticated, and this token payload could then be used in your security rules, as described here: https://www.firebase.com/docs/security /security-rules.html .
Rob DiMarco
source share