Skip to content

Commit

Permalink
Merge pull request #225 from Link-MIND/refactor/#224
Browse files Browse the repository at this point in the history
[Refactor] ํ† ํฐ ๋งŒ๋ฃŒ์‹œ๊ฐ„ ๋ณ€๊ฒฝ refactor/#224
  • Loading branch information
sss4920 authored Feb 8, 2024
2 parents 8ad6c09 + 006c92c commit 9cc49b8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ public class AuthService {
private final SlackApi slackApi;


private final Long TOKEN_EXPIRATION_TIME_ACCESS = 3*24*60 * 60 * 1000L; //3์ผ
private final Long TOKEN_EXPIRATION_TIME_REFRESH = 8*24*60 * 60 * 1000L; //8์ผ
private final Long TOKEN_EXPIRATION_TIME_ACCESS = 7*24*60 * 60 * 1000L; //7์ผ
private final Long TOKEN_EXPIRATION_TIME_REFRESH = 14*24*60 * 60 * 1000L; //14์ผ
@Value("${static-image.root}")
private String BASIC_ROOT;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,9 @@ public LoginResult getKaKaoId(String accessToken) {
ResponseEntity<Object> responseData = requestKakaoServer(accessToken, Strategy.LOGIN);
ObjectMapper objectMapper = new ObjectMapper();
HashMap profileResponse = (HashMap)objectMapper.convertValue( responseData.getBody(),Map.class).get("properties");
return LoginResult.of(objectMapper.convertValue(responseData.getBody(), Map.class).get("id").toString(), profileResponse==null?null:profileResponse.get("profile_image").toString(),
profileResponse==null?null:profileResponse.get("nickname").toString()); //ํ”„๋กœํ•„ ์ด๋ฏธ์ง€ ํ—ˆ์šฉ x์‹œ null๋กœ ๋„˜๊ธฐ๊ธฐ.
return LoginResult.of(objectMapper.convertValue(responseData.getBody(), Map.class).get("id").toString(),
profileResponse==null||profileResponse.get("profile_image")==null?null:profileResponse.get("profile_image").toString(),
profileResponse==null||profileResponse.get("nickname")==null?null:profileResponse.get("nickname").toString()); //ํ”„๋กœํ•„ ์ด๋ฏธ์ง€ ํ—ˆ์šฉ x์‹œ null๋กœ ๋„˜๊ธฐ๊ธฐ.
}
// ์ธ๊ฐ€์ฝ”๋“œ ๋‚˜์ค‘์— ์„œ๋ฒ„์—์„œ ํ•œ๋ฒˆ์— ์ฒ˜๋ฆฌ ํ•˜๋Š” ๋ฐฉ์‹์œผ๋กœ ๋ณ€๊ฒฝ. ux ์ด์Šˆ

Expand Down

0 comments on commit 9cc49b8

Please sign in to comment.