diff --git a/src/connector-cli/src/commands/login.ts b/src/connector-cli/src/commands/login.ts index f211b18..c22cddd 100644 --- a/src/connector-cli/src/commands/login.ts +++ b/src/connector-cli/src/commands/login.ts @@ -72,7 +72,7 @@ async function executeDeviceFlowAndGenerateAccessToken( timeout = setTimeout(() => { clearInterval(interval); reject(new Error('Authorization timeot!')); - }, 30 * 1000); + }, 60 * 1000); }); const accessToken = await retryPromise; diff --git a/src/connector-cli/src/commands/publish/steps/get-request-url.ts b/src/connector-cli/src/commands/publish/steps/get-request-url.ts index 51f21b3..90edace 100644 --- a/src/connector-cli/src/commands/publish/steps/get-request-url.ts +++ b/src/connector-cli/src/commands/publish/steps/get-request-url.ts @@ -3,6 +3,6 @@ export function getRequestUrl(baseUrl: string, environment: string) { if (!connectorEndpointBaseUrl.pathname.endsWith('/')) { connectorEndpointBaseUrl.pathname += '/'; } - connectorEndpointBaseUrl.pathname += `api/experimental/environment/${environment}/connectors`; + connectorEndpointBaseUrl.pathname += `api/v1/environment/${environment}/connectors`; return connectorEndpointBaseUrl.toString(); } diff --git a/src/connector-cli/src/commands/set-auth/steps/get-request-url.ts b/src/connector-cli/src/commands/set-auth/steps/get-request-url.ts index 6c460c0..2c05cb9 100644 --- a/src/connector-cli/src/commands/set-auth/steps/get-request-url.ts +++ b/src/connector-cli/src/commands/set-auth/steps/get-request-url.ts @@ -10,7 +10,7 @@ export function getRequestUrl( if (!connectorEndpointBaseUrl.pathname.endsWith('/')) { connectorEndpointBaseUrl.pathname += '/'; } - connectorEndpointBaseUrl.pathname += `api/experimental/environment/${environment}/connectors/${connectorId}`; + connectorEndpointBaseUrl.pathname += `api/v1/environment/${environment}/connectors/${connectorId}`; switch (type) { case SupportedAuth.Chili: { connectorEndpointBaseUrl.pathname += '/auth/chili';