oauth-client-lite
v0.4.0
Published
<!-- [![NPM version][npm-image]][npm-url] [![Build status][travis-image]][travis-url] [![Coverage status][codecov-image]][codecov-url] [![Dependency status][daviddm-image]][daviddm-url] -->
Downloads
6
Readme
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 });