firebase auth:import users.json --hash-algo bcrypt

Category: Firebase & Firestore

firebase auth:import users.json --hash-algo bcrypt

Import users hashed with bcrypt

Imports users.json and tells Firebase their passwords were hashed with bcrypt, so it can verify logins against the imported hashes. Different algorithms need different flags — scrypt needs --rounds and --mem-cost, SHA256 needs --hash-key. Test one account's login after importing to confirm the hash parameters match.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.