From 0642f2ad98f61924c8b8601fbab0940efc1e4758 Mon Sep 17 00:00:00 2001 From: choidongkuen Date: Sat, 13 Jan 2024 09:17:47 +0900 Subject: [PATCH] =?UTF-8?q?refactor:=20=EB=B6=88=ED=95=84=EC=9A=94?= =?UTF-8?q?=ED=95=9C=20import=20=EB=85=B8=EC=B6=9C=20=EC=A0=9C=EA=B1=B0=20?= =?UTF-8?q?(#42)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/net/teumteum/auth/service/OAuthService.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/net/teumteum/auth/service/OAuthService.java b/src/main/java/net/teumteum/auth/service/OAuthService.java index 537b6c34..c1e7bb9a 100644 --- a/src/main/java/net/teumteum/auth/service/OAuthService.java +++ b/src/main/java/net/teumteum/auth/service/OAuthService.java @@ -67,9 +67,9 @@ private OAuthUserInfo getOAuthUserInfo(ClientRegistration clientRegistration, Au private TokenResponse checkUserAndMakeResponse(OAuthUserInfo oAuthUserInfo, Authenticated authenticated) { String oauthId = oAuthUserInfo.getOAuthId(); - java.util.Optional user = getUser(oauthId, authenticated); + java.util.Optional user = getUser(oauthId, authenticated); if (user.isEmpty()) { - return new net.teumteum.auth.domain.response.TokenResponse(oAuthUserInfo.getOAuthId()); + return new TokenResponse(oAuthUserInfo.getOAuthId()); } return jwtService.createServiceToken(user.get()); }