FIX: google strategy different callbacks for google

This commit is contained in:
Gabriel Rosa
2022-06-27 14:13:18 -03:00
parent 2f5d940b46
commit 7012a6e2ac
3 changed files with 7 additions and 15 deletions
-12
View File
@@ -37,18 +37,6 @@ export class OauthController {
return await this.callback(req, 'hubspot');
}
@Get('google')
@UseGuards(AuthGuard('google'))
async oauthGoogle() {
return true;
}
@Get('google/callback')
@UseGuards(AuthGuard('google'))
@Redirect()
async oauthGoogleCallback(@Req() req) {
return await this.callback(req, 'googleads');
}
@Get('googleads')
@UseGuards(AuthGuard('google'))
async oauthGoogleAds() {