Skip to content

Commit

Permalink
fix: 로그인 명세 변경
Browse files Browse the repository at this point in the history
1. http method post로 변경

2. params에 추가하는 것이 아닌 url내 code 및 redirectUri 추가
  • Loading branch information
jinyoung234 committed Aug 6, 2024
1 parent 590437f commit 4cb5c30
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions frontend/src/components/pages/login/KakaoCallbackPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,7 @@ const KakaoCallbackPage = () => {

if (code) {
client
.get(`${ROUTE_PATHS.loginOauth}`, {
params: {
code: code,
"redirect-uri": encodedRedirectUri,
},
})
.post(`${ROUTE_PATHS.loginOauth}?code=${code}&redirectUri=${encodedRedirectUri}`)
.then((res) => {
saveUser(res.data);
navigate(ROUTE_PATHS.root);
Expand Down

0 comments on commit 4cb5c30

Please sign in to comment.