diff --git a/src/auth/auth.controller.ts b/src/auth/auth.controller.ts index 5774767..a7068f8 100644 --- a/src/auth/auth.controller.ts +++ b/src/auth/auth.controller.ts @@ -27,7 +27,6 @@ export class AuthController { @Post('login') async login(@Body() loginDto: LoginDto) { - this.logger.log('AuthController - Login Request:', loginDto); const user = await this.authService.validateUser( loginDto.email, @@ -48,7 +47,7 @@ export class AuthController { @Get('google/callback') @UseGuards(AuthGuard('google')) googleAuthRedirect(@Req() req: Request, @Res() res: Response) { - this.logger.log('AuthController - Google Callback Request:', req.user); + //this.logger.log('AuthController - Google Callback Request:', req.user); this.authService.redirectFederated(req.user as any, res); } @@ -61,10 +60,10 @@ export class AuthController { @Get('microsoft/callback') @UseGuards(AuthGuard('microsoft')) microsoftAuthRedirect(@Req() req: Request, @Res() res: Response) { - this.logger.log( - 'AuthController - Microsoft Callback Request:', - JSON.stringify(req.user), - ); + //this.logger.log( + //'AuthController - Microsoft Callback Request:', + // JSON.stringify(req.user), + //); this.authService.redirectFederated(req.user as any, res); } diff --git a/src/auth/auth.service.ts b/src/auth/auth.service.ts index fb3bcf8..08ae76a 100644 --- a/src/auth/auth.service.ts +++ b/src/auth/auth.service.ts @@ -165,7 +165,7 @@ export class AuthService { } redirectFederated(user: any, res: Response) { - this.logger.log('redirectFederated', user); + //this.logger.log('redirectFederated', user); const { accessToken, refreshToken } = user || {}; if (accessToken) { diff --git a/src/auth/strategies/google.strategy.ts b/src/auth/strategies/google.strategy.ts index 19529f9..95938aa 100644 --- a/src/auth/strategies/google.strategy.ts +++ b/src/auth/strategies/google.strategy.ts @@ -27,7 +27,7 @@ export class GoogleStrategy extends PassportStrategy(Strategy, 'google') { profile: Profile, done: VerifyCallback, ) { - this.logger.log('GoogleStrategy - Profile:', profile); + //this.logger.log('GoogleStrategy - Profile:', profile); const { user, token } = await this.authService.loginFederated({ email: profile.emails[0].value, name: profile.displayName, diff --git a/src/auth/strategies/microsoft.strategy.ts b/src/auth/strategies/microsoft.strategy.ts index b9810b3..23b0bd1 100644 --- a/src/auth/strategies/microsoft.strategy.ts +++ b/src/auth/strategies/microsoft.strategy.ts @@ -28,7 +28,7 @@ export class MicrosoftStrategy extends PassportStrategy(Strategy, 'microsoft') { profile: Profile, done: VerifyCallback, ) { - this.logger.log('MicrosoftStrategy - Profile:', JSON.stringify(profile)); + //this.logger.log('MicrosoftStrategy - Profile:', JSON.stringify(profile)); const { user, token } = await this.authService.loginFederated({ email: profile.emails[0].value, name: profile.displayName,