Skip to content

Commit 0f1f9c4

Browse files
authored
Merge pull request #395 from Quickchive/feat/add-oauth-v2
feat: oauth v2 컨트롤러 등록
2 parents 8d6d628 + 067d6f1 commit 0f1f9c4

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/auth/auth.module.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ import { ContentsModule } from '../contents/contents.module';
1414
import { OAuthService } from './oauth.service';
1515
import { CategoryModule } from '../categories/category.module';
1616
import { RedisModule } from '../infra/redis/redis.module';
17+
import { OauthV2Controller } from './oauth.v2.controller';
18+
import { OAuthV2Service } from './oauth.v2.service';
1719

1820
const accessTokenExpiration = TWOHOUR;
1921
export const refreshTokenExpirationInCache = 60 * 60 * 24 * 365; // 1 year
@@ -34,14 +36,15 @@ export const verifyEmailExpiration = 60 * 5;
3436
CategoryModule,
3537
RedisModule,
3638
],
37-
controllers: [AuthController, OAuthController],
39+
controllers: [AuthController, OAuthController, OauthV2Controller],
3840
providers: [
3941
AuthService,
4042
JwtStrategy,
4143
OAuthService,
4244
OAuthUtil,
4345
GoogleStrategy,
4446
customJwtService,
47+
OAuthV2Service,
4548
],
4649
exports: [AuthService],
4750
})

0 commit comments

Comments
 (0)