diff --git a/.woodpecker/build-and-publish.yml b/.woodpecker/build-and-publish.yml index e62bd74..6001a00 100644 --- a/.woodpecker/build-and-publish.yml +++ b/.woodpecker/build-and-publish.yml @@ -8,6 +8,7 @@ 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 6cb3c41..bceecb3 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: "DELETE", credentials: "include" }); + await fetchWithApi("/auth/logout", { method: "GET", credentials: "include" }); clearAuth(); return await navigateTo("/login");