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()); }