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:
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",
|
"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",
|
||||||
|
|
|
@ -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 };
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue