fix: logout not working due to use of outdated HTTP method
All checks were successful
ci/woodpecker/push/build-and-publish Pipeline was successful
All checks were successful
ci/woodpecker/push/build-and-publish Pipeline was successful
This commit is contained in:
parent
b07a0aa5a0
commit
82e0e59617
1 changed files with 1 additions and 1 deletions
|
@ -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");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue