firebase-auth

v0.1.2
A simple wrapper around firebase token authentication
firebase authentication auth token

firebase-auth

Simple wrapper around firebase token authentication

Installation

npm install firebase-auth --save

Usage

var firebaseAuth = require("firebase-auth");
var options = {
  rootRef: "rootRef",
  secretKey: process.env.FIREBASE_SECRET_KEY,
  UID: 'uid',
  admin: true || false //true or false
}

firebaseAuth(options).then(function(rootRef){
  //authenticated rootRef
}, function(error) {
  //handle error as you please
  throw error
})

Contributing

Fork and submit pull requests to improve this repo

Issues

Yes, there would be bugs or feature requests.

Please open an issue and I would try to reply as soon as possible

Release History

  • 0.1.0 Initial release
npm i firebase-auth

Metadata

  • MIT
  • Whatever
  • Abimbola Idowu
  • released 3/19/2016

Downloads

Maintainers