diff --git a/src/app/auth/callback/page.tsx b/src/app/auth/callback/page.tsx index 2d1073c..b542b26 100644 --- a/src/app/auth/callback/page.tsx +++ b/src/app/auth/callback/page.tsx @@ -59,7 +59,7 @@ export default function LoginCheck() { if (code) { if (state) { sendDataArr.push({ name: 'code', value: code }) - sendDataArr.push({ name: 'state', value: code }) + sendDataArr.push({ name: 'state', value: state }) getUserData('naver', sendDataArr) return } @@ -71,7 +71,7 @@ export default function LoginCheck() { sendDataArr.push({ name: 'code', value: code }) getUserData('kakao', sendDataArr) } - }, []) + }, [code, state, scope]) return