diff --git a/src/modules/oauth/oauth.controller.ts b/src/modules/oauth/oauth.controller.ts index 2b31ff2..b9dab90 100644 --- a/src/modules/oauth/oauth.controller.ts +++ b/src/modules/oauth/oauth.controller.ts @@ -31,14 +31,14 @@ export class OauthController { this.frontendRedirectUri = `http://localhost:4200/coletix/auth-callback`; } } - @UseGuards(AuthGuard('hubspot')) @Get('hubspot') - async oauthHubspot(@Req() req) { + @UseGuards(AuthGuard('hubspot')) + async oauthHubspot() { return true; } - @UseGuards(AuthGuard('hubspot')) @Get('hubspot/callback') + @UseGuards(AuthGuard('hubspot')) @Redirect() async oauthHubspotCallback(@Req() req, @Query('state') customer_id) { const { authInfo } = req;