auth1

0.0.2 • Public • Published

Auth1 Nodejs SDK

USAGE

const Auth1 = require('auth1')
const auth1 = new Auth1({
  clientId: "xxx",
  clientSecret: "yyy"
})
auth1.getAccessToken().then(data=>{
  console.log('data',data);
  // data.access_token = 'xxx'
  // data.expires_in = 21234
  // data.type = "Bearer"
}).catch(e=>{
  console.log('error',e);
  
})
 
auth1.getConnectionAccessToken({
  connectionId: 'joeCJ_s9JIfDkT6sWUHHx'
}).then(data=>{
  console.log('data',data);
  // data.access_token
  // data.expires_at
})

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.2
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.2
    1
  • 0.0.1
    0

Package Sidebar

Install

npm i auth1

Weekly Downloads

1

Version

0.0.2

License

MIT

Unpacked Size

5.05 kB

Total Files

5

Last publish

Collaborators

  • theowenyoung