From cc6a825e1808e7b3dbd82e7ce67f378f30037529 Mon Sep 17 00:00:00 2001 From: jeongmin Date: Wed, 6 Dec 2023 18:32:02 +0900 Subject: [PATCH] =?UTF-8?q?hotfix:=20naverStrategy=20profile=20=ED=8C=8C?= =?UTF-8?q?=EC=8B=B1=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- BE/src/auth/strategies/naver.strategy.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/BE/src/auth/strategies/naver.strategy.ts b/BE/src/auth/strategies/naver.strategy.ts index f7a20ff..2066775 100644 --- a/BE/src/auth/strategies/naver.strategy.ts +++ b/BE/src/auth/strategies/naver.strategy.ts @@ -22,7 +22,8 @@ export class NaverOAuthStrategy extends PassportStrategy(Strategy, "naver") { profile: Profile, ): Promise { try { - const { email, id, nickname } = profile; + const { _json } = profile; + const { email, id, nickname } = _json; const user = new User(); const salt = await bcrypt.genSalt();