From 82e0e596173add3e98833f41416bca9cc4d1254e Mon Sep 17 00:00:00 2001 From: SauceyRed Date: Mon, 21 Jul 2025 12:16:59 +0200 Subject: [PATCH 1/2] fix: logout not working due to use of outdated HTTP method --- composables/auth.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"); From 8be948623b099e3852f44474a02e5c34616d8a01 Mon Sep 17 00:00:00 2001 From: Radical Date: Tue, 22 Jul 2025 18:55:57 +0200 Subject: [PATCH 2/2] ci: only run on push prevents duplicate CIs from running at the same time --- .woodpecker/build-and-publish.yml | 1 - 1 file changed, 1 deletion(-) 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