vergissberlin / firebase-login-custom

This package is a wrapper to Firebase custom login including all dependencies with the exception of firebase it self.
https://www.npmjs.com/package/firebase-login-custom
MIT License
1 stars 0 forks source link
firebase

firebase-login-custom

Build Status Dependency Status Gitter Issues npm version

Authenticating Users with Email & Password

To authenticate a user using Custom Login, we must provide each client with a secure JWT that has been generated on a server. We provide several helper libraries for generating JWTs. Use a Firebase Secret to generate these tokens. Firebase Secrets can be found by logging into the Firebase account and clicking on the Security tab in the Firebase Dashboard.

This package is a wrapper to Firebase custom login including all dependencies with the exception of firebase it self.

More information your can find here.

Installation

Install via npm:

    npm install firebase firebase-login-custom

Example


    var ref = new Firebase('https://<Your Firebase>.firebaseio.com');

    FirebaseLoginCustom(firebaseRef, {
            uid: <Your id>
        },
        {
            secret: <Your secret>,
        },
        function (error, data) {
            if (error !== null) {
                console.log(error);
            } else {
                console.log(data.token);
            }
        }
    );

Issues

Please report issues to ticket system. Pull requests are welcome here!

Contributing

  1. Fork it
  2. Create your feature branch (git flow feature start my-new-feature)
  3. Commit your changes (git commit -am 'Add code')
  4. Finish your implementation (git flow feature finish my-new-feature)
  5. Push to origin (git push origin)
  6. Create new Pull Request

Install locally

$ cd /path/to/firebase-login-email/
$ npm install
$ export FIREBASE_ID=<YOUR_TEST_ID>
$ export FIREBASE_SECRET=<123456abcdefg>
$ node tests/integration/firebase-login-custom-integration-child.js
$ node tests/integration/firebase-login-custom-integration-simple.js
$ node tests/integration/firebase-login-custom-integration-unique.js

Thanks to

  1. A special thanks to the developers of NodeJS and Firebase.

Bitdeli Badge Greenkeeper badge