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

0.0.3 • Public • Published

oauth-client-lite

description

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-ts

Weekly Downloads

0

Version

0.0.3

License

MIT

Unpacked Size

70.8 kB

Total Files

29

Last publish

Collaborators

  • zyhack