An open API service indexing awesome lists of open source software.

https://github.com/vergissberlin/firebase-login-custom

This package is a wrapper to Firebase custom login including all dependencies with the exception of firebase it self.
https://github.com/vergissberlin/firebase-login-custom

firebase

Last synced: 4 months ago
JSON representation

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

Awesome Lists containing this project

README

          

firebase-login-custom
=====================

[![Build Status](https://travis-ci.org/vergissberlin/firebase-login-custom.svg)](https://travis-ci.org/vergissberlin/firebase-login-custom)
[![Dependency Status](https://gemnasium.com/vergissberlin/firebase-login-custom.svg)](https://gemnasium.com/vergissberlin/firebase-login-custom)
[![Gitter](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/vergissberlin/firebase-login-custom?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge)
[![Issues](http://img.shields.io/github/issues/vergissberlin/firebase-login-custom.svg)]( https://github.com/vergissberlin/firebase-login-custom/issues "GitHub ticket system")
[![npm version](https://img.shields.io/npm/v/firebase-login-custom.png)](https://npmjs.org/package/firebase-login-custom "View this project on npm")

Authenticating Users with Email & Password
------------------------------------------

To authenticate a user using [Custom Login](https://www.firebase.com/docs/web/guide/login/custom.html),
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](https://www.firebase.com/docs/web/guide/login/custom.html).

Installation
------------

Install via npm:

```bash
npm install firebase firebase-login-custom
```

Example
-------

```javascript

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

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

Issues
------

Please report issues to [ticket system](https://github.com/vergissberlin/firebase-login-custom/issues).
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`)
4. Push to origin (`git push origin`)
5. Create new Pull Request

Install locally
---------------

```bash
$ cd /path/to/firebase-login-email/
$ npm install
$ export FIREBASE_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](https://d2weczhvl823v0.cloudfront.net/vergissberlin/firebase-login-custom/trend.png)](https://bitdeli.com/free "Bitdeli Badge") [![Greenkeeper badge](https://badges.greenkeeper.io/vergissberlin/firebase-login-custom.svg)](https://greenkeeper.io/)