egg_tools/test/lark.ts
zhaoyingbo b141a4c50e
All checks were successful
/ release (push) Successful in 1m2s
chore(net-tool): 修改鉴权函数调用方式
2024-11-25 10:46:04 +00:00

13 lines
282 B
TypeScript

import { LarkService } from "../packages/net-tool/src/index"
const larkService = new LarkService({
appId: "appId",
appSecret: "appSecret",
requestId: "requestId",
})
larkService.user
.code2Login("")
.then((res) => console.log(res))
.catch((err) => console.error(err))