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
})

Dependents (2)

Package Sidebar

Install

npm i auth1

Weekly Downloads

5

Version

0.0.2

License

MIT

Unpacked Size

5.05 kB

Total Files

5

Last publish

Collaborators

  • theowenyoung