Command line utility to generated firebase authenticated info.
npm install -g firebase-auth-info
firebase-auth-info path_to_firebase_config.json options
-
--anonymously
,-a
: anonymous authenticationfirebase-auth-info path_to_firebase_config.json --anonymously
Requires anonymously authentication provider enabled
-
--create
,-c
: create user with email and passwordfirebase-auth-info path_to_firebase_config.json --create <email> <password>
Requires email/password authentication provider enabled
-
--signin
,-s
: sign in with email and passwordfirebase-auth-info path_to_firebase_config.json --signin <email> <password>
Requires email/password authentication provider enabled
In order to generate firebase config file:
- Create Firebase project
- Enable authentication
- Create web app
- Create json file with firebase config details, it should be the following one
{
"apiKey": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
"authDomain": "XXXX-XXXX.firebaseapp.com",
"projectId": "XXXX-XXXX",
"storageBucket": "XXXX-XXXX.appspot.com",
"messagingSenderId": "XXXXXXXXXXXXXX",
"appId": "X:XXXXXXXXXXXX:web:XXXXXXXXXXXXXXX",
"measurementId": "X-XXXXXXXX"
}