diff --git a/.changeset/thirty-zoos-compare.md b/.changeset/thirty-zoos-compare.md new file mode 100644 index 000000000..8cc70b8a2 --- /dev/null +++ b/.changeset/thirty-zoos-compare.md @@ -0,0 +1,5 @@ +--- +"@logto/connector-dingtalk-web": minor +--- + +add DingTalk web connector diff --git a/packages/connectors/connector-dingtalk-web/package.json b/packages/connectors/connector-dingtalk-web/package.json index b37aabbfc..6d718f3a8 100644 --- a/packages/connectors/connector-dingtalk-web/package.json +++ b/packages/connectors/connector-dingtalk-web/package.json @@ -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", diff --git a/packages/connectors/connector-dingtalk-web/src/index.ts b/packages/connectors/connector-dingtalk-web/src/index.ts index 1ecd56e08..b1a60b205 100644 --- a/packages/connectors/connector-dingtalk-web/src/index.ts +++ b/packages/connectors/connector-dingtalk-web/src/index.ts @@ -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 }; };