0.0.4 • Published 9 years ago

firebase-login-custom v0.0.4

Weekly downloads
21
License
MIT
Repository
github
Last release
9 years ago

firebase-login-custom

Build Status Dependency Status 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.
0.0.4

9 years ago

0.0.3

9 years ago

0.0.2

9 years ago

0.0.1

9 years ago