diff --git a/packages/api/src/@core/connections-strategies/connections-strategies.controller.ts b/packages/api/src/@core/connections-strategies/connections-strategies.controller.ts index 835b95642..c924f6910 100644 --- a/packages/api/src/@core/connections-strategies/connections-strategies.controller.ts +++ b/packages/api/src/@core/connections-strategies/connections-strategies.controller.ts @@ -116,13 +116,12 @@ export class ConnectionsStrategiesController { ); } - //todo: ADMIN @ApiOperation({ operationId: 'getCredentials', summary: 'Fetch credentials info needed for connections', }) @ApiResponse({ status: 200 }) - //@UseGuards(JwtAuthGuard) + @UseGuards(JwtAuthGuard) @Get('getCredentials') async getCredentials( @Query('projectId') projectId: string, diff --git a/packages/shared/src/authUrl.ts b/packages/shared/src/authUrl.ts index 51c4f00ea..64020970d 100644 --- a/packages/shared/src/authUrl.ts +++ b/packages/shared/src/authUrl.ts @@ -71,7 +71,7 @@ const handleOAuth2Url = async (input: HandleOAuth2Url) => { config, encodedRedirectUrl, state, - apiUrl + apiUrl } = input; const type = providerToType(providerName, vertical, authStrategy);