hubspot oauth

This commit is contained in:
Gabriel Rosa
2022-06-22 15:24:36 -03:00
parent 072a9fee8e
commit da3b7f3096
8 changed files with 136 additions and 33 deletions
+20
View File
@@ -0,0 +1,20 @@
import { Controller, Get, Req, UseGuards } from '@nestjs/common';
import { ApiTags } from '@nestjs/swagger';
import { AuthGuard } from '@nestjs/passport';
@ApiTags('oauth')
@Controller('oauth')
export class OauthController {
@UseGuards(AuthGuard('hubspot'))
@Get('hubspot')
async oauthHubspot(@Req() req) {
console.log(req);
return true;
}
@UseGuards(AuthGuard('hubspot'))
@Get('hubspot/callback')
async oauthHubspotCallback() {
console.log('hubspot/callback');
}
}