diff --git a/.woodpecker/build-and-publish.yml b/.woodpecker/build-and-publish.yml index 6001a00..e62bd74 100644 --- a/.woodpecker/build-and-publish.yml +++ b/.woodpecker/build-and-publish.yml @@ -8,7 +8,6 @@ steps: - pnpm build when: - event: push - - event: pull_request - name: container-build-and-publish image: docker diff --git a/composables/auth.ts b/composables/auth.ts index bceecb3..6cb3c41 100644 --- a/composables/auth.ts +++ b/composables/auth.ts @@ -41,7 +41,7 @@ export const useAuth = () => { async function logout() { console.log("access:", accessToken.value); - await fetchWithApi("/auth/logout", { method: "GET", credentials: "include" }); + await fetchWithApi("/auth/logout", { method: "DELETE", credentials: "include" }); clearAuth(); return await navigateTo("/login");