1.0.7 • Published 10 years ago

faust v1.0.7

Weekly downloads
73
License
MIT
Repository
github
Last release
10 years ago

Faust

Github authorization. First things first:

  • get key and secret from https://github.com/settings/applications
  • set url to yours in applications tab of settings http://your-url
  • start server and you ready to go

Install

npm i faust --save

How to use?

var url     = require('url'),
    http    = require('http'),
    faust   = require('faust'),
    KEY     = 'some key',
    SECRET  = 'some secret'
    auth    = faust(KEY, SECRET);

http.createServer(function (req, res) {
    auth(req, function(error, token) {
        res.end(token);
    };
}).listen(1337, '0.0.0.0');

License

MIT

1.0.7

10 years ago

1.0.6

10 years ago

1.0.5

10 years ago

1.0.4

11 years ago

1.0.3

11 years ago

1.0.2

11 years ago

1.0.1

11 years ago

1.0.0

11 years ago