Skip to content

Commit

Permalink
hotfix: logout api 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
eastfilmm committed Jun 8, 2024
1 parent d8ab63d commit 2db777a
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/apis/auth/auth.api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,11 @@ export async function logout(): Promise<AuthAPIRequest> {
export async function logout2(): Promise<AuthAPIRequest> {
const refreshToken = localStorage.getItem('refreshToken');
try {
const response = await axiosClient.post(`${BASE_URI}/users/signout2`, {
refreshToken,
withCredentials: true,
});
const response = await axios.post(
`${BASE_URI}/users/signout2`,
{ refreshToken },
{ withCredentials: true }
);
localStorage.clear();
console.log('sign out successfully');
return response.data;
Expand Down

0 comments on commit 2db777a

Please sign in to comment.