Skip to content

Commit

Permalink
🛠 fix : 카카오로그인 redirect uri 복귀
Browse files Browse the repository at this point in the history
  • Loading branch information
seondal committed Feb 20, 2024
1 parent 360dffb commit be03a7d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 31 deletions.
2 changes: 1 addition & 1 deletion src/app/(Main)/mypose/components/LoginModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ interface LoginModalProps {
}

export default function LoginModal({ onClose }: LoginModalProps) {
const link = `https://kauth.kakao.com/oauth/authorize?client_id=${KAKAO_SERVER_KEY}&redirect_uri=${BASE_SITE_URL}/auth&response_type=code`;
const link = `https://kauth.kakao.com/oauth/authorize?client_id=${KAKAO_SERVER_KEY}&redirect_uri=${BASE_SITE_URL}/api/users/login/oauth/kakao&response_type=code`;

const handleLogin = () => {
window.location.href = link;
Expand Down
27 changes: 0 additions & 27 deletions src/app/(Sub)/api/users/login/oauth/kakao/page.tsx

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ interface PageProps {
}

export default function Page({ searchParams }: PageProps) {
// useEffect(() => {
// getRegister(searchParams.code);
// });
useEffect(() => {
getRegister(searchParams.code);
});

return <>Loading...</>;
}

0 comments on commit be03a7d

Please sign in to comment.