oauth-client-lite
TypeScript icon, indicating that this package has built-in type declarations

0.4.0 • Public • Published

oauth-client-lite

Installment

$ npm i

Usage

// emailDomainWhiteList is an Array ['company.com', outher-company.com]
// emailDomainWhiteList is optional
// support these auth providers: BitbucketAuth, GoogleAuth, DingtalkAuth
 
const { BitbucketAuth } = require('oauth-client-lite');
const authClient = new BitbucketAuth({
  appid,
  appsecret,
  emailDomainWhiteList,
});
const userInfo = await authClient.getUserData({ tmpAuthCode });

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i oauth-client-lite

Weekly Downloads

0

Version

0.4.0

License

MIT

Unpacked Size

67.2 kB

Total Files

27

Last publish

Collaborators

  • zyhack