mirror of
https://github.com/logto-io/logto.git
synced 2025-01-13 21:30:30 -05:00
feat(connector): add DingTalk web connector changeset (#5940)
This commit is contained in:
parent
3927e6644c
commit
0b5b15b969
3 changed files with 6 additions and 3 deletions
5
.changeset/thirty-zoos-compare.md
Normal file
5
.changeset/thirty-zoos-compare.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
"@logto/connector-dingtalk-web": minor
|
||||
---
|
||||
|
||||
add DingTalk web connector
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@logto/connector-dingtalk-web",
|
||||
"version": "1.0.0",
|
||||
"version": "0.0.0",
|
||||
"description": "Dingtalk web connector implementation.",
|
||||
"dependencies": {
|
||||
"@logto/connector-kit": "workspace:^3.0.0",
|
||||
|
|
|
@ -3,7 +3,6 @@
|
|||
* https://open.dingtalk.com/document/orgapp/obtain-identity-credentials#title-4up-u8w-5ug
|
||||
*/
|
||||
|
||||
import { assert } from '@silverhand/essentials';
|
||||
import { got, HTTPError } from 'got';
|
||||
|
||||
import type {
|
||||
|
@ -80,7 +79,6 @@ export const getAccessToken = async (
|
|||
}
|
||||
|
||||
const { accessToken } = result.data;
|
||||
assert(accessToken, new ConnectorError(ConnectorErrorCodes.InvalidResponse));
|
||||
|
||||
return { accessToken };
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue