From 61c0f0b67570d776172695e9ef677dff300891cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=86=8C=EC=9A=B8=EC=B9=98=ED=82=A8?= <90738604+soulchicken@users.noreply.github.com> Date: Tue, 31 Oct 2023 19:15:19 +0900 Subject: [PATCH] =?UTF-8?q?Feat:=20=EC=86=8C=EC=85=9C=EB=A1=9C=EA=B7=B8?= =?UTF-8?q?=EC=9D=B8=20=EA=B8=B0=EB=8A=A5=20=EB=8B=A4=EC=8B=9C=20=ED=83=91?= =?UTF-8?q?=EC=A0=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../account/socialLoginButton/GoogleButton.tsx | 12 ++++++------ .../account/socialLoginButton/KakaoButton.tsx | 12 ++++++------ .../account/socialLoginButton/NaverButton.tsx | 12 ++++++------ 3 files changed, 18 insertions(+), 18 deletions(-) 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 (