diff --git a/src/pages/auth/SignIn.tsx b/src/pages/auth/SignIn.tsx
index c1bfd025..8e165591 100644
--- a/src/pages/auth/SignIn.tsx
+++ b/src/pages/auth/SignIn.tsx
@@ -77,19 +77,24 @@ export default function SignIn() {
-
+
-
-
-
+ {/* // FIXME: 구글 간편 로그인 리다이렉트시 500에러가 발생하는 부분으로 주석 처리하였음 */}
+ {/*
*/}
+
+ {/* */}
diff --git a/src/pages/auth/redirect/google-callback/index.ts b/src/pages/auth/redirect/google-callback/index.ts
new file mode 100644
index 00000000..1f925901
--- /dev/null
+++ b/src/pages/auth/redirect/google-callback/index.ts
@@ -0,0 +1,21 @@
+import { useEffect } from 'react';
+import { useSearchParams } from 'next/navigation';
+import useGoogleLogin from '@/hooks/useGoogleLogin';
+
+export default function Google() {
+ const searchParams = useSearchParams();
+ const code = searchParams.get('code');
+ const { mutate: login } = useGoogleLogin();
+
+ useEffect(() => {
+ if (code) {
+ login(code);
+ } else {
+ /* eslint-disable no-console */
+ console.log(code); // code가 없을 때 콘솔에 출력
+ }
+ }, [code, login]);
+}
+
+// code가 없는 경우의 예시 http://localhost:3000/auth/redirect/kakao
+// 토스트로 에러 메시지 띄우고, 로그인 페이지로 리다이렉트
diff --git a/src/pages/auth/redirect/naver/index.ts b/src/pages/auth/redirect/naver/index.ts
new file mode 100644
index 00000000..ff844a3d
--- /dev/null
+++ b/src/pages/auth/redirect/naver/index.ts
@@ -0,0 +1,19 @@
+import useNaverLogin from '@/hooks/useNaverLogin';
+import { useSearchParams } from 'next/navigation';
+import { useEffect } from 'react';
+
+export default function Naver() {
+ const searchParams = useSearchParams();
+ const code = searchParams.get('code');
+ const state = searchParams.get('state');
+ const { mutate: login } = useNaverLogin();
+
+ useEffect(() => {
+ if (code && state) {
+ login({ code, state });
+ } else {
+ /* eslint-disable no-console */
+ console.log(code, state); // code가 없을 때 콘솔에 출력
+ }
+ }, [code, state, login]);
+}
diff --git a/src/pages/epigrams/[id]/index.tsx b/src/pages/epigrams/[id]/index.tsx
index 9f5424ae..ffbd6f79 100644
--- a/src/pages/epigrams/[id]/index.tsx
+++ b/src/pages/epigrams/[id]/index.tsx
@@ -22,7 +22,7 @@ function DetailPage() {
return (
-