1.0.3 • Published 1 year ago
firebase-auth-info v1.0.3
Firebase Auth Info
Command line utility to generated firebase authenticated info.
Installation
npm install -g firebase-auth-info
Usage
firebase-auth-info path_to_firebase_config.json options
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
Firebase Config
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"
}