authentic-client-es6-promises
Porting of authentic-client to ES6 & native promises
Last updated 2 years ago by sporgj .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install authentic-client-es6-promises 
SYNC missed versions from official npm registry.

AuthenticClient

This is a port of the authentic-client authentic. This helps interact with an authentic-server so that you can easily signup, confirm, login, and change-password for users. It will also help send tokens to microservices that require authentication.

Example

var Authentic = require('authentic-client-es6-promises')

var auth = Authentic({
  server: 'https://auth.scalehaus.io'
})

var creds = {
  email: 'chet@scalehaus.io',
  password: 'notswordfish'
}

auth.login(creds).then(() => {
  var url = 'https://reporting.scalehaus.io/report'
  auth.get(url).then(rsp) {
    let data = rsp.body

    // show that report
    console.log(data)
  })
})

Installation

npm install --save authentic-client-es6-promises

Current Tags

  • 0.0.1                                ...           latest (2 years ago)

1 Versions

  • 0.0.1                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (5)
Dev Dependencies (5)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |