Skip to content

Commit

Permalink
fix: data-shape
Browse files Browse the repository at this point in the history
  • Loading branch information
jiwonh423 committed Aug 14, 2023
1 parent 5b30eab commit 63e656f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions frontend/src/pages/KaKaoRedirectPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,11 @@ export const handleOAuthKakao = async (code: string) => {
console.log('222');
const url = `https://mapbefine.kro.kr/api/oauth/login/kakao?code=${code}`;
console.log('line12');
const data = await getApi<LoginResponse>('login', url);
const data = await getApi<any>('login', url);
console.log('data', data);

localStorage.setItem('userToken', data.accessToken);
localStorage.setItem('user', JSON.stringify(data.member));
localStorage.setItem('userToken', data.data.accessToken);
localStorage.setItem('user', JSON.stringify(data.data.member));

window.alert('login process');
} catch (error) {
Expand Down

0 comments on commit 63e656f

Please sign in to comment.