Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/#274 SSR에서 토큰 탑재 자동화 및 마이페이지 리팩토링 #279

Merged
merged 7 commits into from
Jan 25, 2024
Prev Previous commit
Next Next commit
Feat: SSR 환경에서 마이페이지 불러오는 api로 수정
  • Loading branch information
navyjeongs committed Jan 18, 2024
commit 89da8f63f5882687893a889454614c163efd5ce7
4 changes: 2 additions & 2 deletions src/apis/mypage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ export const sendEmailVerification = async (email: string) => {
});
};

export const fetchMy = async () => {
export const fetchMyPageWithSSR = async () => {
const res = await authAPI<MyPage>({
method: 'get',
url: '/api/member/mypage',
});

return res;
return res.data;
};

export const fetchProfile = async () => {
Expand Down