Skip to content

Commit

Permalink
Feat: 소셜로그인 기능 다시 탑제
Browse files Browse the repository at this point in the history
  • Loading branch information
soulchicken committed Oct 31, 2023
1 parent 043f69e commit 61c0f0b
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 18 deletions.
12 changes: 6 additions & 6 deletions src/components/account/socialLoginButton/GoogleButton.tsx
Original file line number Diff line number Diff line change
@@ -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';

Expand All @@ -12,11 +12,11 @@ const GoogleButton = () => {
setToastMessage('');
};
const googleLoginHandler = () => {
setToastMessage('소셜로그인은 추후에 제공될 예정입니다. :)');
// signIn('google', {
// callbackUrl: '/',
// redirect: false,
// });
// setToastMessage('소셜로그인은 추후에 제공될 예정입니다. :)');
signIn('google', {
callbackUrl: '/',
redirect: false,
});
};

return (
Expand Down
12 changes: 6 additions & 6 deletions src/components/account/socialLoginButton/KakaoButton.tsx
Original file line number Diff line number Diff line change
@@ -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';

Expand All @@ -12,11 +12,11 @@ const KakaoButton = () => {
setToastMessage('');
};
const kakaoLoginHandler = () => {
setToastMessage('소셜로그인은 추후에 제공될 예정입니다. :)');
// signIn('kakao', {
// callbackUrl: '/',
// redirect: false,
// });
// setToastMessage('소셜로그인은 추후에 제공될 예정입니다. :)');
signIn('kakao', {
callbackUrl: '/',
redirect: false,
});
};

return (
Expand Down
12 changes: 6 additions & 6 deletions src/components/account/socialLoginButton/NaverButton.tsx
Original file line number Diff line number Diff line change
@@ -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';

Expand All @@ -12,11 +12,11 @@ const NaverButton = () => {
setToastMessage('');
};
const naverLoginHandler = () => {
setToastMessage('소셜로그인은 추후에 제공될 예정입니다. :)');
// signIn('naver', {
// callbackUrl: '/',
// redirect: false,
// });
// setToastMessage('소셜로그인은 추후에 제공될 예정입니다. :)');
signIn('naver', {
callbackUrl: '/',
redirect: false,
});
};

return (
Expand Down

0 comments on commit 61c0f0b

Please sign in to comment.