Skip to content

Commit

Permalink
refactor: remove unused method
Browse files Browse the repository at this point in the history
OCD-4721
  • Loading branch information
tmy1313 committed Nov 26, 2024
1 parent e9c77c7 commit 041bdff
Showing 1 changed file with 0 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -197,24 +197,6 @@ public User getUserInfo(String email) throws UserRetrievalException {
return createUserFromGetUserResponse(response);
}


<<<<<<< Updated upstream
@CachePut(CacheNames.COGNITO_USERS)
=======
>>>>>>> Stashed changes
public User getUserNoCache(UUID cognitoId) throws UserRetrievalException {
AdminGetUserRequest request = AdminGetUserRequest.builder()
.userPoolId(userPoolId)
.username(cognitoId.toString())
.build();

AdminGetUserResponse response = cognitoClient.adminGetUser(request);
if (response == null || response.sdkHttpResponse() == null || !response.sdkHttpResponse().isSuccessful()) {
return null;
}
return createUserFromGetUserResponse(response);
}

public CognitoCredentials createUser(CreateUserRequest userRequest) throws UserCreationException {
try {
String tempPassword = PasswordUtil.generatePassword();
Expand Down

0 comments on commit 041bdff

Please sign in to comment.