Skip to content

Commit

Permalink
Added changes to set authtoken
Browse files Browse the repository at this point in the history
Signed-off-by: Neha Farheen <[email protected]>
  • Loading branch information
Neha Farheen committed Mar 14, 2024
1 parent b4f9446 commit a7076ae
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,9 @@ public AuthResponseDTO build(String tokenID) {
boolean status = !authStatusInfos.isEmpty() && authStatusInfos.stream().allMatch(AuthStatusInfo::isStatus);
ResponseDTO res = new ResponseDTO();
res.setAuthStatus(status);
res.setAuthToken(tokenID);
if(status) {
res.setAuthToken(tokenID);
}
responseDTO.setResponse(res);
responseDTO.setResponseTime(DateUtils.getUTCCurrentDateTimeString(IdAuthCommonConstants.UTC_DATETIME_PATTERN));
AuthError[] authErrors = authStatusInfos.stream().flatMap(statusInfo -> Optional.ofNullable(statusInfo.getErr())
Expand Down

0 comments on commit a7076ae

Please sign in to comment.