restberry-passport-facebook

1.1.0 • Public • Published

Restberry-Passport-Facebook

Restberry Passport wrapper for passport-facebook.

Install

npm install restberry-passport-facebook

Usage

var restberryPassport = require('restberry-passport');

var auth = restberryPassport.config(function(auth) {
    ...
})
.use('facebook', {
    clientID: ...,
    clientSecret: ...,
    callbackHost: ...,
    returnURL: ...,
    scope: ...,
});

restberry.use(auth);

Two new routes have been created to the User:

  • GET /login/facebook
  • GET /login/facebook/callback

Run the tests

The tests require you to have the node test app running on port 6000 and the the index.html test file accessable at port 6001 on your localhost. There is an nginx-conf file that is setup for this in the test directory. Then simply run:

npm test

Dependencies (4)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i restberry-passport-facebook

    Weekly Downloads

    1

    Version

    1.1.0

    License

    MIT

    Last publish

    Collaborators

    • materik