Skip to content

Commit

Permalink
refactor: 카카오 토큰만을 사용
Browse files Browse the repository at this point in the history
  • Loading branch information
westzeroright committed Sep 24, 2024
1 parent 5db5599 commit f00eda7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 29 deletions.
26 changes: 0 additions & 26 deletions src/main/java/com/ordertogether/team14_be/auth/JwtUtil.java

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package com.ordertogether.team14_be.auth.application.service;

import com.ordertogether.team14_be.auth.JwtUtil;
import com.ordertogether.team14_be.auth.application.dto.KakaoUserInfo;
import com.ordertogether.team14_be.auth.presentation.KakaoClient;
import com.ordertogether.team14_be.memebr.application.service.MemberService;
Expand All @@ -19,8 +18,7 @@ public String kakaoLogin(String authorizationCode) {
KakaoUserInfo kakaoUserInfo = kakaoClient.getUserInfo((kakaoToken));
String userKakaoEmail = kakaoUserInfo.kakaoAccount().email();
memberService.findOrCreateMember(userKakaoEmail);
String serviceToken = JwtUtil.generateToken(userKakaoEmail);

return serviceToken;
return kakaoToken;
}
}

0 comments on commit f00eda7

Please sign in to comment.