Skip to content

Commit 33a0913

Browse files
authored
Merge pull request #337 from TTORANG/dev
[#336] 로그인 로직 수정 배포
2 parents 221778a + 698571d commit 33a0913

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

src/auth.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ export const kakaoStrategy = new KakaoStrategy(
5555
clientID: process.env.PASSPORT_KAKAO_CLIENT_ID,
5656
clientSecret: process.env.PASSPORT_KAKAO_CLIENT_SECRET, // 필요 시 설정
5757
callbackURL: "/auth/kakao/callback",
58+
scope: ["profile_nickname", "profile_image", "account_email"],
5859
},
5960
async (accessToken, refreshToken, profile, cb) => {
6061
try {

src/services/auth.service.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ export const socialLoginVerification = async (profile, provider) => {
5151
name = profile.displayName || profile._json?.properties?.nickname;
5252
profileImageUrl =
5353
profile._json?.kakao_account?.profile?.profile_image_url ||
54+
profile._json?.kakao_account?.profile?.thumbnail_image_url ||
5455
profile._json?.properties?.profile_image ||
5556
profile._json?.properties?.thumbnail_image ||
5657
null;

0 commit comments

Comments
 (0)