oauth-client-lite-ts
v0.0.3
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
32
Readme
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 });