aoauth

1.1.1 • Public • Published

aoauth

Build Status Code Climate Code Coverage npm Version JS Standard

OAuth server for akoa

Installation

$ npm install aoauth --save

Usage

'use strict'
 
const co = require('co')
const aoauth = require('aoauth')
 
co(function * () {
  let server = aoauth({
    twitter: aoauth.twitterStrategy(
      'your-consumer-key',
      'your-secret',
      'http://localhost:3000/oauth/twitter/callback'
    )
  }, {
    prefix: '/oauth'
  })
  server.listen(3010)
}).catch((err) => console.error(err))
 

License

This software is released under the MIT License.

Links

Readme

Keywords

none

Package Sidebar

Install

npm i aoauth

Weekly Downloads

3

Version

1.1.1

License

MIT

Last publish

Collaborators

  • okunishinishi