Skip to content

Commit 2d83950

Browse files
authored
Revert "fix: using install link for monday (#222)" (#223)
This reverts commit a6555d4.
1 parent a6555d4 commit 2d83950

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@vesselapi/integrations",
3-
"version": "1.0.18",
3+
"version": "1.0.19",
44
"description": "Vessel integrations",
55
"main": "dist/index.js",
66
"module": "dist/index.mjs",

src/platforms/monday/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ export * as types from './schemas';
1414

1515
export default platform('monday', {
1616
auth: [
17-
auth.apiToken({}),
18-
auth.oauth2({
17+
auth.apiToken({
1918
default: true,
19+
}),
20+
auth.oauth2({
2021
authUrl: `https://auth.monday.com/oauth2/authorize`,
21-
authUrlQuery: { response_type: 'install' },
2222
tokenUrl: `https://auth.monday.com/oauth2/token`,
2323
tokenAuth: 'body',
2424
isRetryable: async ({ status }) => status === 401,

src/sdk/auth.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ export const auth = {
2525
authUrl:
2626
| HttpsUrl
2727
| OAuth2AuthConfig<TAnswers, z.infer<TOAuthAppConfigSchema>>['authUrl'];
28-
authUrlQuery?: Record<string, string | number>;
2928
tokenUrl:
3029
| HttpsUrl
3130
| OAuth2AuthConfig<TAnswers, z.infer<TOAuthAppConfigSchema>>['tokenUrl'];
@@ -71,7 +70,6 @@ export const auth = {
7170
scope: scopes.join(options.scopeSeparator ?? ' '),
7271
state,
7372
response_type: 'code',
74-
...(options.authUrlQuery ?? {}),
7573
};
7674
return `${
7775
isFunction(options.authUrl)

0 commit comments

Comments
 (0)