Skip to content

Commit

Permalink
refactor: 불필요한 import 노출 제거 (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
choidongkuen committed Jan 13, 2024
1 parent d05cb0c commit 0642f2a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/net/teumteum/auth/service/OAuthService.java
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,9 @@ private OAuthUserInfo getOAuthUserInfo(ClientRegistration clientRegistration, Au

private TokenResponse checkUserAndMakeResponse(OAuthUserInfo oAuthUserInfo, Authenticated authenticated) {
String oauthId = oAuthUserInfo.getOAuthId();
java.util.Optional<net.teumteum.user.domain.User> user = getUser(oauthId, authenticated);
java.util.Optional<User> 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());
}
Expand Down

0 comments on commit 0642f2a

Please sign in to comment.