@zhengxs/dingtalk-auth
v0.1.0
Published
The Non-official TypeScript library for the DingTalk Open API
Downloads
156
Readme
@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