tiny code organization improvements

This commit is contained in:
Gabriel Rosa
2022-06-23 16:31:48 -03:00
parent d6552678a8
commit 9bf7cc660e
+3 -3
View File
@@ -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;