@zhengxs/dingtalk-auth
TypeScript icon, indicating that this package has built-in type declarations

0.0.1-beta.1 • Public • Published

@zhengxs/dingtalk-auth

WIP

安装

# With PNPM
$ pnpm add @zhengxs/dingtalk-auth

示例

import { AuthCredential } from '@zhengxs/dingtalk-auth';

const credential = new AuthCredential({
  clientId: process.env.DINGTALK_CLIENT_ID,
  clientSecret: process.env.DINGTALK_CLIENT_SECRET,
});

// 获取授权令牌
await credential.getToken();
//=> { accessToken: '...' }

License

MIT

Readme

Keywords

Package Sidebar

Install

npm i @zhengxs/dingtalk-auth

Weekly Downloads

1

Version

0.0.1-beta.1

License

MIT

Unpacked Size

87.2 kB

Total Files

37

Last publish

Collaborators

  • zhengxs