Skip to content

Commit 98247ce

Browse files
committed
fix: 회원가입 성공 시 토큰 추가
1 parent ed9949a commit 98247ce

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/page/signup/SignUp.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import { useSignUpForm } from '@/page/signup/hook/useSignUpForm';
99
import { PATH } from '@/route';
1010
import { usePostSignUp } from '@/api/domain/signup/hook/usePostSignup';
1111
import type { SignupRequest } from '@/api/domain/signup/type/SignupRequest';
12+
import { useGoogleAuth } from '@/common/hook/useGoogleAuth';
1213

1314
const SIGNUP_MESSAGE = '회원가입 후 NiNE DOT를 만나보세요!';
1415
const FIT_INFO_MESSAGE = '내 성향을 선택하고 맞춤형 목표 추천을 받아보세요';
@@ -48,8 +49,8 @@ const SignUp = () => {
4849

4950
signUp(payload, {
5051
onSuccess: () => {
51-
console.log(userData.onboardingPage);
52-
navigate(PATH.INTRO, { state: { pageState: userData.onboardingPage } });
52+
useGoogleAuth();
53+
navigate(PATH.INTRO, { state: { pageState: 'MANDALART' } });
5354
},
5455
onError: () => {},
5556
});

0 commit comments

Comments
 (0)