mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-06 09:26:47 +00:00
chore: cleanup
This commit is contained in:
@@ -180,10 +180,6 @@ export const getAppsVercel = async ({ accessToken, teamId }: { teamId?: string |
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
for (const project of data.projects) {
|
|
||||||
console.log(project.customEnvironments);
|
|
||||||
}
|
|
||||||
|
|
||||||
data.projects.forEach((a) => {
|
data.projects.forEach((a) => {
|
||||||
apps.push({
|
apps.push({
|
||||||
name: a.name,
|
name: a.name,
|
||||||
|
|||||||
@@ -5,7 +5,6 @@ import { request } from "@app/lib/config/request";
|
|||||||
import { BadRequestError, ForbiddenRequestError, InternalServerError, NotFoundError } from "@app/lib/errors";
|
import { BadRequestError, ForbiddenRequestError, InternalServerError, NotFoundError } from "@app/lib/errors";
|
||||||
|
|
||||||
import { Integrations, IntegrationUrls } from "./integration-list";
|
import { Integrations, IntegrationUrls } from "./integration-list";
|
||||||
import { AxiosError } from "axios";
|
|
||||||
|
|
||||||
type ExchangeCodeAzureResponse = {
|
type ExchangeCodeAzureResponse = {
|
||||||
token_type: string;
|
token_type: string;
|
||||||
@@ -198,22 +197,15 @@ const exchangeCodeVercel = async ({ code }: { code: string }) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const res = (
|
const res = (
|
||||||
await request
|
await request.post<ExchangeCodeVercelResponse>(
|
||||||
.post<ExchangeCodeVercelResponse>(
|
IntegrationUrls.VERCEL_TOKEN_URL,
|
||||||
IntegrationUrls.VERCEL_TOKEN_URL,
|
new URLSearchParams({
|
||||||
new URLSearchParams({
|
code,
|
||||||
code,
|
client_id: appCfg.CLIENT_ID_VERCEL,
|
||||||
client_id: appCfg.CLIENT_ID_VERCEL,
|
client_secret: appCfg.CLIENT_SECRET_VERCEL,
|
||||||
client_secret: appCfg.CLIENT_SECRET_VERCEL,
|
redirect_uri: `${appCfg.SITE_URL}/integrations/vercel/oauth2/callback`
|
||||||
redirect_uri: `${appCfg.SITE_URL}/integrations/vercel/oauth2/callback`
|
|
||||||
})
|
|
||||||
)
|
|
||||||
.catch((e) => {
|
|
||||||
if (e instanceof AxiosError) {
|
|
||||||
console.log(e.response?.data);
|
|
||||||
}
|
|
||||||
throw e;
|
|
||||||
})
|
})
|
||||||
|
)
|
||||||
).data;
|
).data;
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|||||||
-2
@@ -164,8 +164,6 @@ export const VercelConfigurePage = () => {
|
|||||||
return selectedEnvironments;
|
return selectedEnvironments;
|
||||||
}, [targetAppId, customEnvironments]);
|
}, [targetAppId, customEnvironments]);
|
||||||
|
|
||||||
console.log("selectedVercelEnvironments", selectedVercelEnvironments);
|
|
||||||
|
|
||||||
return integrationAuth &&
|
return integrationAuth &&
|
||||||
selectedSourceEnvironment &&
|
selectedSourceEnvironment &&
|
||||||
integrationAuthApps &&
|
integrationAuthApps &&
|
||||||
|
|||||||
Reference in New Issue
Block a user