0.1.0 • Published 1 year ago

@zhengxs/dingtalk-auth v0.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

@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