0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2024-12-30 20:33:54 -05:00

feat(connector): add DingTalk web connector changeset (#5940)

This commit is contained in:
Darcy Ye 2024-05-31 12:31:24 +08:00 committed by GitHub
parent 3927e6644c
commit 0b5b15b969
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 6 additions and 3 deletions

View file

@ -0,0 +1,5 @@
---
"@logto/connector-dingtalk-web": minor
---
add DingTalk web connector

View file

@ -1,6 +1,6 @@
{ {
"name": "@logto/connector-dingtalk-web", "name": "@logto/connector-dingtalk-web",
"version": "1.0.0", "version": "0.0.0",
"description": "Dingtalk web connector implementation.", "description": "Dingtalk web connector implementation.",
"dependencies": { "dependencies": {
"@logto/connector-kit": "workspace:^3.0.0", "@logto/connector-kit": "workspace:^3.0.0",

View file

@ -3,7 +3,6 @@
* https://open.dingtalk.com/document/orgapp/obtain-identity-credentials#title-4up-u8w-5ug * https://open.dingtalk.com/document/orgapp/obtain-identity-credentials#title-4up-u8w-5ug
*/ */
import { assert } from '@silverhand/essentials';
import { got, HTTPError } from 'got'; import { got, HTTPError } from 'got';
import type { import type {
@ -80,7 +79,6 @@ export const getAccessToken = async (
} }
const { accessToken } = result.data; const { accessToken } = result.data;
assert(accessToken, new ConnectorError(ConnectorErrorCodes.InvalidResponse));
return { accessToken }; return { accessToken };
}; };