1.0.3 • Published 1 year ago

firebase-auth-info v1.0.3

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year ago

Firebase Auth Info

NPM version

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 authentication

    firebase-auth-info path_to_firebase_config.json --anonymously

    Requires anonymously authentication provider enabled

  • --create, -c: create user with email and password

    firebase-auth-info path_to_firebase_config.json --create <email> <password>

    Requires email/password authentication provider enabled

  • --signin, -s: sign in with email and password

    firebase-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:

  1. Create Firebase project
  2. Enable authentication
  3. Create web app
  4. 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"
}
1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago