Skip to content

Commit

Permalink
♻️ refactor: google strategy 더이상 사용하지 않는 의존성 제거
Browse files Browse the repository at this point in the history
  • Loading branch information
xjfcnfw3 committed Nov 23, 2024
1 parent 258044b commit afb3bf3
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/backend/src/auth/google/strategy/google.strategy.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import { Inject, Injectable } from '@nestjs/common';
import { Injectable } from '@nestjs/common';
import { PassportStrategy } from '@nestjs/passport';
import { Profile, Strategy, VerifyCallback } from 'passport-google-oauth20';
import { GoogleAuthService } from '@/auth/google/googleAuth.service';
import { OauthType } from '@/user/domain/ouathType';
import { Logger } from 'winston';

export interface OauthUserInfo {
type: OauthType;
Expand All @@ -15,7 +14,7 @@ export interface OauthUserInfo {

@Injectable()
export class GoogleStrategy extends PassportStrategy(Strategy) {
constructor(private readonly googleAuthService: GoogleAuthService, @Inject('winston') private readonly logger: Logger) {
constructor(private readonly googleAuthService: GoogleAuthService) {
super({
clientID: process.env.GOOGLE_CLIENT_ID,
clientSecret: process.env.GOOGLE_CLIENT_SECRET,
Expand Down

0 comments on commit afb3bf3

Please sign in to comment.