authentication-popups-github

0.0.2 • Public • Published

authentication-popups-github

Build Status Code Climate Test Coverage Dependency Status Download Status

Server plugin for implementing OAuth2 popup-based GitHub logins

Installation

npm install authentication-popups-github --save

Documentation

Please refer to the authentication-popups-github documentation for more details.

Complete Example

Here's an example of a Feathers server that uses authentication-popups-github.

const feathers = require('feathers');
const rest = require('feathers-rest');
const hooks = require('feathers-hooks');
const bodyParser = require('body-parser');
const errorHandler = require('feathers-errors/handler');
const plugin = require('authentication-popups-github');
 
// Initialize the application
const app = feathers()
  .configure(rest())
  .configure(hooks())
  // Needed for parsing bodies (login)
  .use(bodyParser.json())
  .use(bodyParser.urlencoded({ extended: true }))
  // Initialize your feathers plugin
  .use('/plugin', plugin())
  .use(errorHandler());
 
app.listen(3030);
 
console.log('Feathers app started on 127.0.0.1:3030');

License

Copyright (c) 2016

Licensed under the MIT license.

Package Sidebar

Install

npm i authentication-popups-github

Weekly Downloads

1

Version

0.0.2

License

MIT

Last publish

Collaborators

  • marshallswain