Skip to content

Commit

Permalink
fix: 로그아웃 api PATCH로 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
guridaek committed Oct 10, 2023
1 parent 3f94b60 commit 4f0ab31
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions frontend/src/apis/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const removeAccessToken = () => {
export const isLogin = () => Boolean(getAccessToken());

export const logout = () => {
deleteRefreshToken();
patchRefreshToken();

removeAccessToken();

Expand Down Expand Up @@ -61,9 +61,9 @@ export const postRefreshToken = async () => {
return response;
};

export const deleteRefreshToken = async () => {
export const patchRefreshToken = async () => {
const response = await fetch(`${BATON_BASE_URL}/oauth/logout`, {
method: 'DELETE',
method: 'PATCH',
headers: {
Authorization: `Bearer ${getAccessToken()}`,
},
Expand Down

0 comments on commit 4f0ab31

Please sign in to comment.