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.
- Host: GitHub
- URL: https://github.com/vergissberlin/firebase-login-custom
- Owner: vergissberlin
- License: mit
- Created: 2015-02-01T19:36:36.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2023-12-15T14:40:07.000Z (over 2 years ago)
- Last Synced: 2025-04-06T21:37:02.377Z (about 1 year ago)
- Topics: firebase
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/firebase-login-custom
- Size: 75.2 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
firebase-login-custom
=====================
[](https://travis-ci.org/vergissberlin/firebase-login-custom)
[](https://gemnasium.com/vergissberlin/firebase-login-custom)
[](https://gitter.im/vergissberlin/firebase-login-custom?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge)
[]( https://github.com/vergissberlin/firebase-login-custom/issues "GitHub ticket system")
[](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**.
----
[](https://bitdeli.com/free "Bitdeli Badge") [](https://greenkeeper.io/)