diff --git a/src/components/account/socialLoginButton/GoogleButton.tsx b/src/components/account/socialLoginButton/GoogleButton.tsx index f6bf59d..92c4650 100644 --- a/src/components/account/socialLoginButton/GoogleButton.tsx +++ b/src/components/account/socialLoginButton/GoogleButton.tsx @@ -1,7 +1,7 @@ import { css } from '@emotion/react'; import Image from 'next/image'; import color from '@/styles/color'; -// import { signIn } from 'next-auth/react'; +import { signIn } from 'next-auth/react'; import { useState } from 'react'; import Toast from '@/components/common/toast/Toast'; @@ -12,11 +12,11 @@ const GoogleButton = () => { setToastMessage(''); }; const googleLoginHandler = () => { - setToastMessage('소셜로그인은 추후에 제공될 예정입니다. :)'); - // signIn('google', { - // callbackUrl: '/', - // redirect: false, - // }); + // setToastMessage('소셜로그인은 추후에 제공될 예정입니다. :)'); + signIn('google', { + callbackUrl: '/', + redirect: false, + }); }; return ( diff --git a/src/components/account/socialLoginButton/KakaoButton.tsx b/src/components/account/socialLoginButton/KakaoButton.tsx index 89d7e42..8da1e6c 100644 --- a/src/components/account/socialLoginButton/KakaoButton.tsx +++ b/src/components/account/socialLoginButton/KakaoButton.tsx @@ -1,7 +1,7 @@ import { css } from '@emotion/react'; import Image from 'next/image'; import color from '@/styles/color'; -// import { signIn } from 'next-auth/react'; +import { signIn } from 'next-auth/react'; import { useState } from 'react'; import Toast from '@/components/common/toast/Toast'; @@ -12,11 +12,11 @@ const KakaoButton = () => { setToastMessage(''); }; const kakaoLoginHandler = () => { - setToastMessage('소셜로그인은 추후에 제공될 예정입니다. :)'); - // signIn('kakao', { - // callbackUrl: '/', - // redirect: false, - // }); + // setToastMessage('소셜로그인은 추후에 제공될 예정입니다. :)'); + signIn('kakao', { + callbackUrl: '/', + redirect: false, + }); }; return ( diff --git a/src/components/account/socialLoginButton/NaverButton.tsx b/src/components/account/socialLoginButton/NaverButton.tsx index 58a4141..0723793 100644 --- a/src/components/account/socialLoginButton/NaverButton.tsx +++ b/src/components/account/socialLoginButton/NaverButton.tsx @@ -1,7 +1,7 @@ import { css } from '@emotion/react'; import Image from 'next/image'; import color from '@/styles/color'; -// import { signIn } from 'next-auth/react'; +import { signIn } from 'next-auth/react'; import Toast from '@/components/common/toast/Toast'; import { useState } from 'react'; @@ -12,11 +12,11 @@ const NaverButton = () => { setToastMessage(''); }; const naverLoginHandler = () => { - setToastMessage('소셜로그인은 추후에 제공될 예정입니다. :)'); - // signIn('naver', { - // callbackUrl: '/', - // redirect: false, - // }); + // setToastMessage('소셜로그인은 추후에 제공될 예정입니다. :)'); + signIn('naver', { + callbackUrl: '/', + redirect: false, + }); }; return (